forked from jquery-archive/jquery-mobile
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
moved push state dialog key test down into its own file to have the k…
…ey at the root
- Loading branch information
1 parent
1811b31
commit c3bac78
Showing
3 changed files
with
54 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(function($) { | ||
asyncTest( "dialog ui-state should be part of the hash", function(){ | ||
$.testHelper.sequence([ | ||
function() { | ||
// open the test page | ||
$.mobile.activePage.find( "a" ).click(); | ||
}, | ||
|
||
function() { | ||
// verify that the hash contains the dialogHashKey | ||
ok( location.hash.search($.mobile.dialogHashKey) >= 0 ); | ||
start(); | ||
} | ||
]); | ||
}); | ||
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>jQuery Mobile Navigation Test Suite</title> | ||
|
||
<script src="../../../js/jquery.js"></script> | ||
<script src="../jquery.setNameSpace.js"></script> | ||
<script src="../../../js/"></script> | ||
<script src="../../../tests/jquery.testHelper.js"></script> | ||
|
||
|
||
<link rel="stylesheet" href="../../../themes/default/"/> | ||
<link rel="stylesheet" href="../../../external/qunit.css"/> | ||
<script src="../../../external/qunit.js"></script> | ||
|
||
<script type="text/javascript" src="navigation_dialog_pushstate.js"></script> | ||
</head> | ||
<body> | ||
|
||
<h1 id="qunit-header">jQuery Mobile Navigation Test Suite</h1> | ||
<h2 id="qunit-banner"></h2> | ||
<h2 id="qunit-userAgent"></h2> | ||
<ol id="qunit-tests"> | ||
</ol> | ||
|
||
<div data-nstest-role="page"> | ||
<a href="#dialog">open the dialog</a> | ||
</div> | ||
|
||
<div id="dialog" data-nstest-role="dialog"> | ||
<div data-nstest-role="header" data-nstest-position="inline"> | ||
<h1>Dialog</h1> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |