From 861bac1d2808b15abb867e761ded8144bf5f7e94 Mon Sep 17 00:00:00 2001 From: Misko Hevery Date: Wed, 31 Mar 2010 17:56:16 -0700 Subject: started to add services --- test/BinderTest.js | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) (limited to 'test/BinderTest.js') 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("
").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("
").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(''); 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("
").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("
").binder; + binder.location.set('a'); + binder.anchor.a = 'b'; + binder.updateView(); + assertEquals(binder.location.get(), "a#a=b"); +}; + + -- cgit v1.2.3