|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="utf-8"> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + <title>jQuery Mobile Popup Test Suite</title> |
| 7 | + |
| 8 | + <script src="../../../external/requirejs/require.js"></script> |
| 9 | + <script src="../../../js/requirejs.config.js"></script> |
| 10 | + <script src="../../../js/jquery.tag.inserter.js"></script> |
| 11 | + <script src="../../jquery.setNameSpace.js"></script> |
| 12 | + <script src="../../../tests/jquery.testHelper.js"></script> |
| 13 | + |
| 14 | + |
| 15 | + <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/> |
| 16 | + <link rel="stylesheet" href="../../../external/qunit.css"/> |
| 17 | + <script src="../../../external/qunit.js"></script> |
| 18 | + <script> |
| 19 | + ( function( $, undefined ) { |
| 20 | + // Set the default transition to "fade" if specified in the query |
| 21 | + if ( !!~location.search.indexOf( "setFadeTransition" ) ) { |
| 22 | + $( document ).one( "mobileinit", function() { |
| 23 | + $.mobile.popup.prototype.options.transition = "fade"; |
| 24 | + }); |
| 25 | + } |
| 26 | + })( jQuery ); |
| 27 | + </script> |
| 28 | + <script> |
| 29 | + $.testHelper.asyncLoad([ |
| 30 | + [ |
| 31 | + "widgets/popup", |
| 32 | + "widgets/listview", |
| 33 | + "widgets/dialog" |
| 34 | + ], |
| 35 | + [ "jquery.mobile.init" ], |
| 36 | + [ |
| 37 | + "popup_core.js" |
| 38 | + ] |
| 39 | + ]); |
| 40 | + </script> |
| 41 | + |
| 42 | + <script src="../../swarminject.js"></script> |
| 43 | +</head> |
| 44 | +<body> |
| 45 | + <div id="qunit"></div> |
| 46 | + |
| 47 | + <div data-nstest-role="page" id="start-page"> |
| 48 | + <div data-nstest-role="content" id="page-content"> |
| 49 | + <div data-nstest-role="popup" id="test-popup"> |
| 50 | + <p>This is the test popup</p> |
| 51 | + <a href="other.html">other.html</a> |
| 52 | + </div> |
| 53 | + <div data-nstest-role="popup" id="test-popup-2"> |
| 54 | + <p>This is another test popup</p> |
| 55 | + </div> |
| 56 | + <a id="open-xyzzy-popup" href="#xyzzy" data-nstest-rel="popup" data-nstest-role="button">Pop</a> |
| 57 | + <a id="open-test-popup" href="#test-popup" data-nstest-rel="popup" data-nstest-role="button">Pop</a> |
| 58 | + <ul data-nstest-role="listview"> |
| 59 | + <li id="open-test-popup-li"><a id="open-test-popup-li-link" href="#test-popup" data-nstest-rel="popup">Pop</a></li> |
| 60 | + </ul> |
| 61 | + <div data-nstest-role="popup" id="popup-sequence-test"> |
| 62 | + <a id="popup-sequence-test-open-dialog" href="popup-sequence-test-dialog.html">Dialog</a> |
| 63 | + </div> |
| 64 | + |
| 65 | + <div data-nstest-role="popup" id="test-history-popup" data-nstest-history="false"> |
| 66 | + <p>This is the test popup</p> |
| 67 | + <a href="#" data-nstest-rel="back" data-nstest-role="button" data-nstest-theme="a" data-nstest-icon="delete" data-nstest-iconpos="notext" class="ui-btn-right">Close</a> |
| 68 | + </div> |
| 69 | + |
| 70 | + <div data-nstest-role="popup" id="test-destroy-popup" data-nstest-history="false"> |
| 71 | + <p>This is the test popup</p> |
| 72 | + </div> |
| 73 | + |
| 74 | + <div data-nstest-role="popup" id="test-popup-dismissible" data-nstest-dismissible="false"> |
| 75 | + <p>This is the test popup</p> |
| 76 | + </div> |
| 77 | + <a id="go-to-another-page" href="back-two.html">Go</a> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + |
| 81 | + <div data-nstest-role="page" id="no-popups"> |
| 82 | + Page that is not the popup page |
| 83 | + </div> |
| 84 | +</body> |
| 85 | +</html> |
0 commit comments