diff options
Diffstat (limited to 'src/ng/directive/ngRepeat.js')
| -rw-r--r-- | src/ng/directive/ngRepeat.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/ng/directive/ngRepeat.js b/src/ng/directive/ngRepeat.js index 4fa82de3..d2c2027b 100644 --- a/src/ng/directive/ngRepeat.js +++ b/src/ng/directive/ngRepeat.js @@ -172,9 +172,8 @@ max-height:40px; } </file> - <file name="protractorTest.js"> - var friends = element(by.css('.doc-example-live')) - .element.all(by.repeater('friend in friends')); + <file name="protractor.js" type="protractor"> + var friends = element.all(by.repeater('friend in friends')); it('should render initial data set', function() { expect(friends.count()).toBe(10); @@ -188,7 +187,7 @@ it('should update repeater when filter predicate changes', function() { expect(friends.count()).toBe(10); - element(by.css('.doc-example-live')).element(by.model('q')).sendKeys('ma'); + element(by.model('q')).sendKeys('ma'); expect(friends.count()).toBe(2); expect(friends.get(0).getText()).toEqual('[1] Mary who is 28 years old.'); |
