diff options
| author | Elliott Sprehn | 2010-10-29 16:02:57 -0700 | 
|---|---|---|
| committer | Elliott Sprehn | 2010-11-01 15:21:37 -0700 | 
| commit | 6bb2cd6ee2a35768ac4422395596daf1438e62ff (patch) | |
| tree | 86c52c03c886116176b8df9afa482fb886538963 /scenario | |
| parent | 2d61040fb085f5d3a226d39726e105c1e6bd7006 (diff) | |
| download | angular.js-6bb2cd6ee2a35768ac4422395596daf1438e62ff.tar.bz2 | |
Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL.
Diffstat (limited to 'scenario')
| -rw-r--r-- | scenario/widgets-scenario.js | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/scenario/widgets-scenario.js b/scenario/widgets-scenario.js index cf482d46..f5b923c3 100644 --- a/scenario/widgets-scenario.js +++ b/scenario/widgets-scenario.js @@ -1,6 +1,6 @@  describe('widgets', function() {    it('should verify that basic widgets work', function(){ -    navigateTo('widgets.html'); +    browser().navigateTo('widgets.html');      using('#text-basic-box').input('text.basic').enter('Carlos');      expect(binding('text.basic')).toEqual('Carlos'); @@ -48,6 +48,7 @@ describe('widgets', function() {      element('#navigate a', "'Go to #route' link").click();      expect(binding('$location.hash')).toEqual('route'); +    expect(browser().location().hash()).toEqual('route');      /**       * Custom value parser for futures.  | 
