415b1dca711bc08d12cff0381c11810ba9aef31a
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / tests / unit / dialog / index.html
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 Dialog Test Suite</title>
7
8         <script src="../../../js/jquery.js"></script>
9         <script>
10                 $(document).bind('mobileinit',function(){
11                         // Expect content to inherit this theme when not explicitly set
12                         $.mobile.page.prototype.options.contentTheme = "d";
13                 });
14         </script>
15         <script src="../jquery.setNameSpace.js"></script>
16         <script src="../../../js/"></script>
17         <script src="../../../tests/jquery.testHelper.js"></script>
18
19
20         <link rel="stylesheet"  href="../../../css/themes/default/"/>
21         <link rel="stylesheet" href="../../../external/qunit.css"/>
22         <script src="../../../external/qunit.js"></script>
23
24         <script src="dialog_events.js"></script>
25
26         <script src="../swarminject.js"></script>
27 </head>
28 <body>
29
30 <h1 id="qunit-header">jQuery Mobile Dialog Test Suite</h1>
31 <h2 id="qunit-banner"></h2>
32 <h2 id="qunit-userAgent"></h2>
33 <ol id="qunit-tests">
34 </ol>
35
36 <div id="mypage" data-nstest-role="page" data-nstest-theme="a">
37         <a href="#foo-dialog" id="foo-dialog-link" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog"></a>
38         <a href="#dialog-a" id="link-a" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">no theme set</a>
39         <a href="#dialog-b" id="link-b" data-nstest-role="button" data-nstest-inline="true" data-nstest-rel="dialog">data-theme set</a>
40         <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>
41 </div>
42
43 <div id="foo-dialog" data-nstest-role="dialog" data-nstest-theme="b">
44         <div  data-nstest-role="header" data-nstest-position="inline">
45                 <h1>Dialog</h1>
46         </div>
47         <div data-nstest-role="content" >
48                 <a href="#" id="internal-link">foo</a>
49         </div>
50         <div data-nstest-role="footer">
51                 footer
52         </div>
53 </div>
54
55 <div data-nstest-role="page" id="dialog-a">
56         <div data-nstest-role="header" data-nstest-position="inline">
57                 <h1> No theme set </h1>
58         </div>
59         <div data-nstest-role="content">
60                  Some text here....
61         </div>
62         <div data-nstest-role="footer">
63                 footer
64         </div>
65 </div>
66
67 <div data-nstest-role="page" data-nstest-theme="e" id="dialog-b">
68         <div data-nstest-role="header">
69                 <h1> data-nstest-theme set </h1>
70         </div>
71         <div data-nstest-role="content">
72                  Some text here....
73         </div>
74         <div data-nstest-role="footer">
75                 footer
76         </div>
77 </div>
78
79 <div data-nstest-role="page" id="dialog-c" data-nstest-overlay-theme="b" data-nstest-theme="e">
80         <div data-nstest-role="header">
81                 <h1> data-nstest-theme & data-nstest-overlay-theme set </h1>
82         </div>
83         <div data-nstest-role="content">
84                  Some text here....
85         </div>
86         <div data-nstest-role="footer">
87                 footer
88         </div>
89 </div>
90
91 </body>
92 </html>