Merge pull request #1493 from bruce-one/back-button-on-default-route-test

Ensure the back button test checks the right thing.
This commit is contained in:
Leo Horie 2016-12-23 17:42:25 -05:00 committed by GitHub
commit a593131022

View file

@ -66,7 +66,9 @@ o.spec("route", function() {
})
o("default route doesn't break back button", function(done) {
$window.location.href = "http://google.com"
$window.location.href = "http://old.com"
$window.location.href = "http://new.com"
route(root, "/a", {
"/a" : {
view: function() {
@ -83,6 +85,7 @@ o.spec("route", function() {
$window.history.back()
o($window.location.pathname).equals("/")
o($window.location.hostname).equals("old.com")
done()
})