We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d65916 commit aa38a05Copy full SHA for aa38a05
test/unit/pjax.js
@@ -727,6 +727,26 @@ if ($.support.pjax) {
727
})
728
729
730
+ asyncTest("address bar only updates on success", function() {
731
+ var frame = this.frame
732
+
733
+ equal(frame.location.pathname, "/home.html")
734
735
+ frame.$("#main").on('pjax:send', function() {
736
737
+ })
738
739
+ frame.$("#main").on('pjax:end', function() {
740
+ equal(frame.location.pathname, "/hello.html")
741
+ start()
742
743
744
+ frame.$.pjax({
745
+ url: "hello.html",
746
+ container: "#main"
747
748
749
750
function goBack(frame, callback) {
751
setTimeout(function() {
752
frame.$("#main").one("pjax:end", callback)
0 commit comments