From af3877be431ade7a718aa5f2298d7ff81af897e8 Mon Sep 17 00:00:00 2001 From: John Bender Date: Wed, 13 Jul 2011 16:04:13 -0700 Subject: [PATCH] tests updated to accomodate relative hash references --- tests/unit/navigation/index.html | 3 +++ tests/unit/navigation/navigation_paths.js | 12 +++++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/unit/navigation/index.html b/tests/unit/navigation/index.html index 7597c79a..23bb834f 100644 --- a/tests/unit/navigation/index.html +++ b/tests/unit/navigation/index.html @@ -28,6 +28,9 @@
+
+
+
diff --git a/tests/unit/navigation/navigation_paths.js b/tests/unit/navigation/navigation_paths.js index eca8a54e..edbb1656 100644 --- a/tests/unit/navigation/navigation_paths.js +++ b/tests/unit/navigation/navigation_paths.js @@ -6,6 +6,12 @@ expect( 2 ); $.testHelper.pageSequence([ + function(){ + // reset before each test, all tests expect original page + // for relative urls + $.testHelper.openPage("#/tests/unit/navigation/"); + }, + // open our test page function(){ $.testHelper.openPage("#pathing-tests"); @@ -25,10 +31,6 @@ // verify that the page has changed and the expected text value is present function(){ same($.mobile.activePage.find(".test-value").text(), expectedTextValue); - $.testHelper.openPage("#pathing-tests-reset"); - }, - - function(){ start(); } ]); @@ -61,7 +63,7 @@ //Doc relative tests module("document relative paths"); - asyncTest( "file reference no nesting", function(){ + asyncTest( "file reference no nesting", function(){ testPageLoad("#doc-rel-test-one", "doc rel test one"); });