BinderTest.prototype.testExpandEntityTagWithName = function(){ var c = this.compile('
'); assertEquals( '
', 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(''); 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('
'); 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( '
', this.compileToHtml('
')); };