Permalink
Browse files

test to make sure Page.load() modifies location.hash even when there …

…are no callbacks
  • Loading branch information...
1 parent 0e56b6d commit 1cc47cb0fd230f2aca8ad8cf9bf92b0f18f55787 @igorsobreira committed Aug 15, 2010
Showing with 7 additions and 0 deletions.
  1. +7 −0 wifimap/media/js/tests/test_page.js
@@ -87,6 +87,13 @@ test("Load modifies location.hash", function(){
equals( window.location.hash, "#/spots/add" );
});
+test("Load modifies location.href even when there is no callback", function() {
+
+ Page.load("/spots/search");
+
+ equals( window.location.hash, "#/spots/search" );
+});
+
start();
QUnit.testStart = function(name) {

0 comments on commit 1cc47cb

Please sign in to comment.