2011-01-21 06:20:07 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
2011-02-18 20:00:18 +00:00
|
|
|
<meta charset="utf-8">
|
2011-05-17 21:28:19 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2011-01-21 06:20:07 +00:00
|
|
|
<title>jQuery Mobile Dialog Test Suite</title>
|
2012-01-13 05:58:42 +00:00
|
|
|
<script src="../../../external/requirejs/require.js"></script>
|
2012-01-20 01:10:32 +00:00
|
|
|
<script src="../../../js/jquery.tag.inserter.js"></script>
|
2011-08-05 22:49:47 +00:00
|
|
|
<script>
|
|
|
|
|
$(document).bind('mobileinit',function(){
|
|
|
|
|
// Expect content to inherit this theme when not explicitly set
|
|
|
|
|
$.mobile.page.prototype.options.contentTheme = "d";
|
|
|
|
|
});
|
2011-08-11 00:06:56 +00:00
|
|
|
</script>
|
2011-03-10 04:16:48 +00:00
|
|
|
<script src="../jquery.setNameSpace.js"></script>
|
2011-12-21 16:13:24 +00:00
|
|
|
<script src="../../jquery.testHelper.js"></script>
|
|
|
|
|
<script src="../../../external/qunit.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
$.testHelper.asyncLoad([
|
|
|
|
|
[
|
|
|
|
|
"jquery.mobile.dialog",
|
|
|
|
|
"jquery.mobile.page",
|
|
|
|
|
"jquery.mobile.page.sections"
|
|
|
|
|
],
|
|
|
|
|
[ "jquery.mobile.init" ],
|
|
|
|
|
[
|
2011-12-21 19:30:46 +00:00
|
|
|
"dialog_events.js"
|
2011-12-21 16:13:24 +00:00
|
|
|
]
|
|
|
|
|
]);
|
|
|
|
|
</script>
|
2011-01-21 06:20:07 +00:00
|
|
|
|
|
|
|
|
|
2012-01-10 22:49:52 +00:00
|
|
|
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
|
2011-04-14 20:04:47 +00:00
|
|
|
<link rel="stylesheet" href="../../../external/qunit.css"/>
|
2011-10-04 17:54:00 +00:00
|
|
|
|
|
|
|
|
<script src="../swarminject.js"></script>
|
2011-01-21 06:20:07 +00:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
|
|
|
|
|
<h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
|
|
|
|
|
<h2 id="qunit-banner"></h2>
|
|
|
|
|
<h2 id="qunit-userAgent"></h2>
|
|
|
|
|
<ol id="qunit-tests">
|
|
|
|
|
</ol>
|
|
|
|
|
|
2011-11-05 05:34:34 +00:00
|
|
|
<div id="mypage" data-nstest-role="page" data-nstest-theme="a">
|
|
|
|
|
<a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
|
|
|
|
|
<a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
|
|
|
|
|
<a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
|
|
|
|
|
<a href="#dialog-c" id="link-c" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme & data-nstest-overlay-theme set</a>
|
2011-01-21 06:20:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
2011-07-28 21:45:39 +00:00
|
|
|
<div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
|
|
|
|
|
<div data-nstest-role="header" data-nstest-position="inline">
|
2011-02-07 06:55:29 +00:00
|
|
|
<h1>Dialog</h1>
|
|
|
|
|
</div>
|
2011-08-05 22:49:47 +00:00
|
|
|
<div data-nstest-role="content" >
|
2011-07-28 21:45:39 +00:00
|
|
|
<a href="#" id="internal-link">foo</a>
|
|
|
|
|
</div>
|
2011-08-05 22:49:47 +00:00
|
|
|
<div data-nstest-role="footer">
|
2011-07-28 21:45:39 +00:00
|
|
|
footer
|
|
|
|
|
</div>
|
2011-01-21 06:20:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
2011-11-05 05:34:34 +00:00
|
|
|
<div data-nstest-role="page" id="dialog-a">
|
|
|
|
|
<div data-nstest-role="header" data-nstest-position="inline">
|
|
|
|
|
<h1> No theme set </h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="content">
|
|
|
|
|
Some text here....
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="footer">
|
|
|
|
|
footer
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
|
|
|
|
|
<div data-nstest-role="header">
|
|
|
|
|
<h1> data-nstest-theme set </h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="content">
|
|
|
|
|
Some text here....
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="footer">
|
|
|
|
|
footer
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
|
|
|
|
|
<div data-nstest-role="header">
|
|
|
|
|
<h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="content">
|
|
|
|
|
Some text here....
|
|
|
|
|
</div>
|
|
|
|
|
<div data-nstest-role="footer">
|
|
|
|
|
footer
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2011-01-21 06:20:07 +00:00
|
|
|
</body>
|
|
|
|
|
</html>
|