aboutsummaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorElliott Sprehn2010-11-01 17:24:24 -0700
committerElliott Sprehn2010-11-01 17:24:24 -0700
commitfaa7d81b679346623c9f023042ddc40dee808e6f (patch)
treee3e364fd3687752ffe2d6e41a9510717b4700756 /example
parent6bb2cd6ee2a35768ac4422395596daf1438e62ff (diff)
downloadangular.js-faa7d81b679346623c9f023042ddc40dee808e6f.tar.bz2
Add browser().reload() to simulate a refresh from a user
Diffstat (limited to 'example')
-rw-r--r--example/personalLog/scenario/personalLogScenario.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/example/personalLog/scenario/personalLogScenario.js b/example/personalLog/scenario/personalLogScenario.js
index 09ceae28..4b6d4ae5 100644
--- a/example/personalLog/scenario/personalLogScenario.js
+++ b/example/personalLog/scenario/personalLogScenario.js
@@ -64,8 +64,7 @@ describe('personal log', function() {
element('form input[type="submit"]').click();
expect(repeater('ul li').count()).toEqual(1);
- browser().navigateTo('about:blank');
- browser().navigateTo('../personalLog.html');
+ browser().reload();
expect(repeater('ul li').column('log.msg')).toEqual('my persistent message');
expect(repeater('ul li').count()).toEqual(1);