diff options
Diffstat (limited to 'src/ng/directive/ngCloak.js')
| -rw-r--r-- | src/ng/directive/ngCloak.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/ng/directive/ngCloak.js b/src/ng/directive/ngCloak.js index 5072c8c2..220c964d 100644 --- a/src/ng/directive/ngCloak.js +++ b/src/ng/directive/ngCloak.js @@ -45,14 +45,14 @@ <div id="template1" ng-cloak>{{ 'hello' }}</div> <div id="template2" ng-cloak class="ng-cloak">{{ 'hello IE7' }}</div> </doc:source> - <doc:scenario> + <doc:protractor> it('should remove the template directive and css class', function() { - expect(element('.doc-example-live #template1').attr('ng-cloak')). - not().toBeDefined(); - expect(element('.doc-example-live #template2').attr('ng-cloak')). - not().toBeDefined(); + expect($('.doc-example-live #template1').getAttribute('ng-cloak')). + toBeNull(); + expect($('.doc-example-live #template2').getAttribute('ng-cloak')). + toBeNull(); }); - </doc:scenario> + </doc:protractor> </doc:example> * */ |
