/tests/unit/dialog/index.html
https://github.com/riju/jquery-mobile · HTML · 121 lines · 109 code · 12 blank · 0 comment · 0 complexity · 22a22341c71f4cc7c6a8efb5fa0cc1f5 MD5 · raw file
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <title>jQuery Mobile Dialog Test Suite</title>
- <script src="../../../external/requirejs/require.js"></script>
- <script src="../../../js/jquery.tag.inserter.js"></script>
- <script>
- $(document).bind('mobileinit',function(){
- // Expect content to inherit this theme when not explicitly set
- $.mobile.page.prototype.options.contentTheme = "d";
- });
- </script>
- <script src="../jquery.setNameSpace.js"></script>
- <script src="../../jquery.testHelper.js"></script>
- <script src="../../../external/qunit.js"></script>
- <script>
- $.testHelper.asyncLoad([
- [
- "widgets/dialog",
- "widgets/page",
- "widgets/page.sections"
- ],
- [ "jquery.mobile.init" ],
- [
- "dialog_events.js"
- ]
- ]);
- </script>
- <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
- <link rel="stylesheet" href="../../../external/qunit.css"/>
- <script src="../swarminject.js"></script>
- </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>
- <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="#close-btn-test" id="close-btn-test-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">Go</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>
- </div>
- <div id="doubleCloseTestPage" data-nstest-role="page">
- <div data-nstest-role="content">
- <a id="doubleCloseDialogOpener" href="#foo-dialog" data-nstest-rel="dialog">Dialog</a>
- </div>
- </div>
- <div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
- <div data-nstest-role="header" data-nstest-position="inline">
- <h1>Dialog</h1>
- </div>
- <div data-nstest-role="content" >
- <a href="#" id="internal-link">foo</a>
- </div>
- <div data-nstest-role="footer">
- footer
- </div>
- </div>
- <div id="close-btn-test" data-nstest-role="dialog" data-nstest-theme="b" data-nstest-close-btn="none">
- <div data-nstest-role="header" data-nstest-position="inline">
- <h1>Dialog</h1>
- </div>
- <div data-nstest-role="content" >
- <a href="#" id="internal-link">foo</a>
- </div>
- <div data-nstest-role="footer">
- footer
- </div>
- </div>
- <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>
- </body>
- </html>