add tests

This commit is contained in:
Leo Horie 2015-02-06 22:08:08 -05:00
parent 4259c06a0a
commit 57021b6b5e
2 changed files with 64 additions and 0 deletions

View file

@ -158,7 +158,9 @@ mock.window = (function() {
}())
window.location = {search: "", pathname: "", hash: ""},
window.history = {}
window.history.$$length = 0
window.history.pushState = function(data, title, url) {
window.history.$$length++
window.location.pathname = window.location.search = window.location.hash = url
},
window.history.replaceState = function(data, title, url) {