Skip to content
Browse files

Revert "Test with equal() instead of ok()"

location.origin is webkit specific

This reverts commit f8ceed9.
  • Loading branch information...
1 parent 4bc0002 commit a1928729426650497b1a16c04f8966a0acda230f @josh josh committed Jun 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/pjax.js
View
4 test/unit/pjax.js
@@ -774,7 +774,7 @@ if ($.support.pjax) {
})
ok(frame.$.pjax.state.id)
- equal(frame.$.pjax.state.url, frame.location.origin + "/home.html")
+ ok(frame.$.pjax.state.url.match("/home.html"))
equal(frame.$.pjax.state.container, "#main")
})
@@ -786,7 +786,7 @@ if ($.support.pjax) {
container: "#main",
success: function() {
ok(frame.$.pjax.state.id)
- equal(frame.$.pjax.state.url, frame.location.origin + "/hello.html")
+ ok(frame.$.pjax.state.url.match("/hello.html"))
equal(frame.$.pjax.state.container, "#main")
start()
}

0 comments on commit a192872

Please sign in to comment.
Something went wrong with that request. Please try again.