File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ if ($.support.pjax) {
205
205
} )
206
206
} )
207
207
208
- asyncTest ( "GET data is appended to query string" , 5 , function ( ) {
208
+ asyncTest ( "GET data is appended to query string" , 6 , function ( ) {
209
209
var data = { foo : 1 , bar : 2 }
210
210
211
211
navigate ( this . frame )
@@ -226,10 +226,11 @@ if ($.support.pjax) {
226
226
// URL is set immediately
227
227
equal ( frame . location . pathname , "/env.html" )
228
228
equal ( frame . location . search , "?foo=1&bar=2" )
229
+ equal ( frame . location . href . indexOf ( "#" ) , - 1 )
229
230
} , 0 )
230
231
} )
231
232
232
- asyncTest ( "GET data is merged into query string" , 5 , function ( ) {
233
+ asyncTest ( "GET data is merged into query string" , 6 , function ( ) {
233
234
var data = { bar : 2 }
234
235
235
236
navigate ( this . frame )
@@ -250,6 +251,7 @@ if ($.support.pjax) {
250
251
// URL is set immediately
251
252
equal ( frame . location . pathname , "/env.html" )
252
253
equal ( frame . location . search , "?foo=1&bar=2" )
254
+ equal ( frame . location . href . indexOf ( "#" ) , - 1 )
253
255
} , 0 )
254
256
} )
255
257
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ asyncTest("scrolls to anchor at top page"+s, function() {
141
141
142
142
if ( disabled ) {
143
143
equal ( frame . location . pathname , "/home.html" )
144
- equal ( frame . location . hash , "" )
144
+ equal ( frame . location . href . indexOf ( "#" ) , - 1 )
145
145
} else {
146
146
equal ( frame . location . pathname , "/anchor.html" )
147
147
equal ( frame . location . hash , "#top" )
You can’t perform that action at this time.
0 commit comments