From 6bb2cd6ee2a35768ac4422395596daf1438e62ff Mon Sep 17 00:00:00 2001 From: Elliott Sprehn Date: Fri, 29 Oct 2010 16:02:57 -0700 Subject: Provide browser DSL with location() to expect the iframe URL parts. Also move navigateTo() under the browser DSL. --- scenario/widgets-scenario.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scenario') 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. -- cgit v1.2.3