mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-13 10:51:02 +00:00
tests updated to accomodate relative hash references
This commit is contained in:
parent
d827be3bf2
commit
af3877be43
2 changed files with 10 additions and 5 deletions
|
|
@ -28,6 +28,9 @@
|
|||
<ol id="qunit-tests">
|
||||
</ol>
|
||||
|
||||
<div id="harmless-default-page" data-nstest-role="page">
|
||||
</div>
|
||||
|
||||
<div id="foo" data-nstest-role="page" class="foo-class">
|
||||
<a href="#bar" data-nstest-transition="flip"></a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue