diff options
| author | Julie | 2014-02-12 15:07:08 -0800 | 
|---|---|---|
| committer | Peter Bacon Darwin | 2014-02-16 19:03:42 +0000 | 
| commit | 9565cca15b6d30aefb78bcec411dea4f7b305019 (patch) | |
| tree | 1c0d58d7541b7d6fb96fb1d1d068d48eb0fca97a /src/ng/directive/ngBind.js | |
| parent | cd508678cd9baffd2bc0c9e11ae724a7b2ff70bb (diff) | |
| download | angular.js-9565cca15b6d30aefb78bcec411dea4f7b305019.tar.bz2 | |
chore(protractor tests): fix up e2e tests
Diffstat (limited to 'src/ng/directive/ngBind.js')
| -rw-r--r-- | src/ng/directive/ngBind.js | 7 | 
1 files changed, 3 insertions, 4 deletions
| diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js index 43611c5a..6bd4fd27 100644 --- a/src/ng/directive/ngBind.js +++ b/src/ng/directive/ngBind.js @@ -40,13 +40,12 @@       </file>       <file name="protractor.js" type="protractor">         it('should check ng-bind', function() { -         var exampleContainer = $('.doc-example-live');           var nameInput = element(by.model('name')); -         expect(exampleContainer.findElement(by.binding('name')).getText()).toBe('Whirled'); +         expect(element(by.binding('name')).getText()).toBe('Whirled');           nameInput.clear();           nameInput.sendKeys('world'); -         expect(exampleContainer.findElement(by.binding('name')).getText()).toBe('world'); +         expect(element(by.binding('name')).getText()).toBe('world');         });       </file>     </example> @@ -162,7 +161,7 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {         }]);       </file> -     <file name="protractorTest.js"> +     <file name="protractor.js" type="protractor">         it('should check ng-bind-html', function() {           expect(element(by.binding('myHTML')).getText()).toBe(               'I am an HTMLstring with links! and other stuff'); | 
