Skip to content

Commit db05244

Browse files
committed
Test that refresh after timeout preserves URL hash
Closes #315
1 parent bbeb696 commit db05244

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/unit/pjax.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,17 @@ if ($.support.pjax) {
741741
var frame = this.frame
742742

743743
frame.$.pjax({
744-
url: "timeout.html",
744+
url: "timeout.html#hello",
745745
container: "#main"
746746
})
747747

748+
equal(frame.location.pathname, "/timeout.html")
749+
equal(frame.location.hash, "#hello")
750+
748751
this.iframe.onload = function() {
749752
equal(frame.$("#main p").html(), "SLOW DOWN!")
750753
equal(frame.location.pathname, "/timeout.html")
754+
equal(frame.location.hash, "#hello")
751755
start()
752756
}
753757
})

0 commit comments

Comments
 (0)