diff options
| author | Vojta Jina | 2011-10-24 15:22:34 -0700 |
|---|---|---|
| committer | Vojta Jina | 2011-10-26 15:58:59 -0700 |
| commit | dc8ffa51b7ebe5fb9bc1c89087c8b3c9e65d1006 (patch) | |
| tree | 0a42ed953901cd36504942d0c3c74e213e138b60 /src/markups.js | |
| parent | d7ba5bc83ba9a8937384ea677331c5156ed6772d (diff) | |
| download | angular.js-dc8ffa51b7ebe5fb9bc1c89087c8b3c9e65d1006.tar.bz2 | |
fix(scenario.dsl): Fix dsl for $location
New $location does not have hashSearch, hashPath.
The old dsl was mixing $location / window.location so this solves the problem as well...
Diffstat (limited to 'src/markups.js')
| -rw-r--r-- | src/markups.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/markups.js b/src/markups.js index 75329169..b7761857 100644 --- a/src/markups.js +++ b/src/markups.js @@ -187,7 +187,7 @@ angularTextMarkup('option', function(text, textNode, parentElement){ expect(element('#link-3').attr('href')).toBe("/123"); element('#link-3').click(); - expect(browser().location().path()).toEqual('/123'); + expect(browser().window().path()).toEqual('/123'); }); it('should execute ng:click but not reload when href empty string and name specified', function() { @@ -207,7 +207,7 @@ angularTextMarkup('option', function(text, textNode, parentElement){ expect(element('#link-6').attr('href')).toBe("/6"); element('#link-6').click(); - expect(browser().location().path()).toEqual('/6'); + expect(browser().window().path()).toEqual('/6'); }); </doc:scenario> </doc:example> |
