@@ -88,7 +88,7 @@ test('Able to do routing in a gist', function(assert) {
8888
8989 andThen ( ( ) => {
9090 assert . equal ( find ( addressBar ) . val ( ) , '/' , "Correct URL is shown in address bar 0" ) ;
91- assert . ok ( decodeURIComponent ( window . location . search ) . indexOf ( "route=" ) === - 1 , "URL is not added to route query string parameter 0" ) ;
91+ assert . ok ( decodeURIComponent ( currentURL ( ) ) . indexOf ( "route=" ) === - 1 , "URL is not added to route query string parameter 0" ) ;
9292
9393 this . registerWaiter ( ) ;
9494 iframe_window = outputPane ( ) ;
@@ -98,7 +98,7 @@ test('Able to do routing in a gist', function(assert) {
9898 andThen ( ( ) => {
9999 assert . equal ( outputContents ( outletText ) , 'About Page' , 'About Link leads to About Page being displayed' ) ;
100100 assert . equal ( find ( addressBar ) . val ( ) , '/about' , "Correct URL is shown in address bar 1" ) ;
101- assert . ok ( decodeURIComponent ( window . location . search ) . indexOf ( "route=/about" ) > 0 , "URL is added to route query string parameter 1" ) ;
101+ assert . ok ( decodeURIComponent ( currentURL ( ) ) . indexOf ( "route=/about" ) > 0 , "URL is added to route query string parameter 1" ) ;
102102
103103 this . registerWaiter ( ) ;
104104 iframe_window . click ( iframe_window . find ( indexLink ) ) ;
@@ -107,7 +107,7 @@ test('Able to do routing in a gist', function(assert) {
107107 andThen ( ( ) => {
108108 assert . equal ( outputContents ( outletText ) , 'Main Page' , 'Index Link leads to Main Page being displayed' ) ;
109109 assert . equal ( find ( addressBar ) . val ( ) , '/' , "Correct URL is shown in address bar 2" ) ;
110- assert . ok ( decodeURIComponent ( window . location . search ) . indexOf ( "route=" ) === - 1 , "URL is not added to route query string parameter 2" ) ;
110+ assert . ok ( decodeURIComponent ( currentURL ( ) ) . indexOf ( "route=" ) === - 1 , "URL is not added to route query string parameter 2" ) ;
111111 } ) ;
112112} ) ;
113113
0 commit comments