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.
navigate
1 parent bee0762 commit f811710Copy full SHA for f811710
test/unit/pjax.js
@@ -1092,17 +1092,11 @@ if ($.support.pjax) {
1092
})
1093
1094
1095
- asyncTest("copes with ampersands when pushing urls", function() {
1096
- var frame = this.frame
1097
-
1098
- frame.$('#main').on('pjax:success', function() {
+ asyncTest("copes with ampersands when pushing urls", 2, function() {
+ navigate(this.frame)
+ .pjax({ url: "/some-&-path/hello.html", container: "#main" }, function(frame) {
1099
equal(frame.location.pathname, "/some-&-path/hello.html")
1100
equal(frame.location.search, "")
1101
- start()
1102
- })
1103
- frame.$.pjax({
1104
- url: "/some-&-path/hello.html",
1105
- container: "#main"
1106
1107
1108
}
0 commit comments