mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-28 12:55:48 +08:00
Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
describe('personal log', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
navigateTo('../personalLog.html');
|
||||
browser().navigateTo('../personalLog.html');
|
||||
});
|
||||
|
||||
|
||||
@@ -64,8 +64,8 @@ describe('personal log', function() {
|
||||
element('form input[type="submit"]').click();
|
||||
expect(repeater('ul li').count()).toEqual(1);
|
||||
|
||||
navigateTo('about:blank');
|
||||
navigateTo('../personalLog.html');
|
||||
browser().navigateTo('about:blank');
|
||||
browser().navigateTo('../personalLog.html');
|
||||
|
||||
expect(repeater('ul li').column('log.msg')).toEqual('my persistent message');
|
||||
expect(repeater('ul li').count()).toEqual(1);
|
||||
|
||||
Reference in New Issue
Block a user