diff options
| author | Misko Hevery | 2010-07-13 15:40:39 -0700 |
|---|---|---|
| committer | Misko Hevery | 2010-07-13 15:40:39 -0700 |
| commit | f084fd37dbc80d9701f417a726b4ac3232039d93 (patch) | |
| tree | b1ad6057a6ccb9b6b12202b3a95f7ab6abad3555 /test/moveToAngularCom | |
| parent | 10cd9751ea4c76f5f0ebcd0197054b6ac3be563c (diff) | |
| download | angular.js-f084fd37dbc80d9701f417a726b4ac3232039d93.tar.bz2 | |
romeve miscTest
Diffstat (limited to 'test/moveToAngularCom')
| -rw-r--r-- | test/moveToAngularCom/miscTest.js | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/moveToAngularCom/miscTest.js b/test/moveToAngularCom/miscTest.js deleted file mode 100644 index cc8f1c8c..00000000 --- a/test/moveToAngularCom/miscTest.js +++ /dev/null @@ -1,35 +0,0 @@ -BinderTest.prototype.testExpandEntityTagWithName = function(){ - var c = this.compile('<div ng-entity="friend=Person"/>'); - assertEquals( - '<div ng-entity="friend=Person" ng:watch="$anchor.friend:{friend=Person.load($anchor.friend);friend.$$anchor=\"friend\";};"></div>', - sortedHtml(c.node)); - assertEquals("Person", c.scope.$get("friend.$entity")); - assertEquals("friend", c.scope.$get("friend.$$anchor")); -}; - -BinderTest.prototype.testExpandSubmitButtonToAction = function(){ - var html = this.compileToHtml('<input type="submit" value="Save">'); - assertTrue(html, html.indexOf('ng-action="$save()"') > 0 ); - assertTrue(html, html.indexOf('ng:bind-attr="{"disabled":"{{$invalidWidgets}}"}"') > 0 ); -}; - -BinderTest.prototype.testReplaceFileUploadWithSwf = function(){ - expectAsserts(1); - var form = jQuery("body").append('<div id="testTag"><input type="file"></div>'); - form.data('scope', new Scope()); - var factory = {}; - var binder = new Binder(form.get(0), factory, new MockLocation()); - factory.createController = function(node){ - assertEquals(node.attr('type'), 'file'); - return {updateModel:function(){}}; - }; - binder.compile(); - jQuery("#testTag").remove(); -}; - -BinderTest.prototype.testExpandEntityTagWithDefaults = function(){ - assertEquals( - '<div ng-entity="Person:{a:\"a\"}" ng:watch=""></div>', - this.compileToHtml('<div ng-entity=\'Person:{a:"a"}\'/>')); -}; - |
