Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f811710

Browse files
committed
Use navigate helper for ampersands-in-path test
1 parent bee0762 commit f811710

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

‎test/unit/pjax.js‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,17 +1092,11 @@ if ($.support.pjax) {
10921092
})
10931093
})
10941094

1095-
asyncTest("copes with ampersands when pushing urls", function() {
1096-
var frame = this.frame
1097-
1098-
frame.$('#main').on('pjax:success', function() {
1095+
asyncTest("copes with ampersands when pushing urls", 2, function() {
1096+
navigate(this.frame)
1097+
.pjax({ url: "/some-&-path/hello.html", container: "#main" }, function(frame) {
10991098
equal(frame.location.pathname, "/some-&-path/hello.html")
11001099
equal(frame.location.search, "")
1101-
start()
1102-
})
1103-
frame.$.pjax({
1104-
url: "/some-&-path/hello.html",
1105-
container: "#main"
11061100
})
11071101
})
11081102
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /