aboutsummaryrefslogtreecommitdiffstats
path: root/test/BinderTest.js
diff options
context:
space:
mode:
authorMisko Hevery2010-03-31 17:56:16 -0700
committerMisko Hevery2010-03-31 18:18:10 -0700
commit11a6431f8926c557f3c58408dacc98466e76cde1 (patch)
treeab36304fd373d0947ca36c577e25ca87a1c894af /test/BinderTest.js
parent35a91085004e31f786df1e0011bc26ed0142ab4d (diff)
downloadangular.js-11a6431f8926c557f3c58408dacc98466e76cde1.tar.bz2
started to add services
Diffstat (limited to 'test/BinderTest.js')
-rw-r--r--test/BinderTest.js38
1 files changed, 20 insertions, 18 deletions
diff --git a/test/BinderTest.js b/test/BinderTest.js
index 4d996a8e..67800e62 100644
--- a/test/BinderTest.js
+++ b/test/BinderTest.js
@@ -201,24 +201,6 @@ BinderTest.prototype.XtestParseAnchor = function(){
assertTrue(!binder.anchor.x);
};
-BinderTest.prototype.XtestWriteAnchor = function(){
- var binder = this.compile("<div/>").binder;
- binder.location.set('a');
- binder.anchor.a = 'b';
- binder.anchor.c = ' ';
- binder.anchor.d = true;
- binder.updateAnchor();
- assertEquals(binder.location.get(), "a#a=b&c=%20&d");
-};
-
-BinderTest.prototype.XtestWriteAnchorAsPartOfTheUpdateView = function(){
- var binder = this.compile("<div/>").binder;
- binder.location.set('a');
- binder.anchor.a = 'b';
- binder.updateView();
- assertEquals(binder.location.get(), "a#a=b");
-};
-
BinderTest.prototype.testRepeaterUpdateBindings = function(){
var a = this.compile('<ul><LI ng-repeat="item in model.items" ng-bind="item.a"/></ul>');
var form = a.node;
@@ -821,3 +803,23 @@ BinderTest.prototype.testItShouldUseFormaterForText = function() {
x.scope.$eval();
assertEquals('1, 2, 3', input[0].value);
};
+
+BinderTest.prototype.XtestWriteAnchor = function(){
+ var binder = this.compile("<div/>").binder;
+ binder.location.set('a');
+ binder.anchor.a = 'b';
+ binder.anchor.c = ' ';
+ binder.anchor.d = true;
+ binder.updateAnchor();
+ assertEquals(binder.location.get(), "a#a=b&c=%20&d");
+};
+
+BinderTest.prototype.XtestWriteAnchorAsPartOfTheUpdateView = function(){
+ var binder = this.compile("<div/>").binder;
+ binder.location.set('a');
+ binder.anchor.a = 'b';
+ binder.updateView();
+ assertEquals(binder.location.get(), "a#a=b");
+};
+
+