Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…are no callbacks
  • Loading branch information...
commit 1cc47cb0fd230f2aca8ad8cf9bf92b0f18f55787 1 parent 0e56b6d
@igorsobreira authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 wifimap/media/js/tests/test_page.js
View
7 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) {
Please sign in to comment.
Something went wrong with that request. Please try again.