UnitTest:JQM Unit TC helper has been added,TCs have been modified
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / tests / unit / button / 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 Button Test Suite</title>
7
8         <script src="../../../external/requirejs/require.js"></script>
9         <script src="../../../js/jquery.tag.inserter.js"></script>
10         <script src="../jquery.setNameSpace.js"></script>
11         <script src="../../../tests/jquery.testHelper.js"></script>
12
13
14         <link rel="stylesheet"  href="../../../css/themes/default/jquery.mobile.css"/>
15         <link rel="stylesheet" href="../../../external/qunit.css"/>
16         <script src="../../../external/qunit.js"></script>
17         <script src="../../../../../../tests/jqm-tchelper/tizen.testHelper.js"></script>
18         <script>
19                 $.testHelper.asyncLoad([
20                         [
21                                 "widgets/forms/button",
22                         ],
23                         [ "jquery.mobile.init" ],
24                         [
25                                 "button_core.js"
26                         ]
27                 ]);
28         </script>
29
30         <script src="../swarminject.js"></script>
31 </head>
32 <body>
33   <h1 id="qunit-header">jQuery Mobile Button Test Suite</h1>
34   <h2 id="qunit-banner"></h2>
35   <h2 id="qunit-userAgent"></h2>
36   <ol id="qunit-tests">
37   </ol>
38
39   <div data-nstest-role="page" data-nstest-theme="a">
40     <div data-nstest-role="content" data-nstest-theme="p">
41       <button class="should-be-native">foo</button>
42       <button id="enhanced">bar</button>
43       <button id="text">foo</button>
44       <button id="value" value="foo"></button>
45       <form id="hidden-element-addition-form" method="get" action="this will fail!">
46         <input type="submit" id="hidden-element-addition" name="foo">foo</input>
47       </form>
48       <button id="theme-check" value="foo"></button>
49       <button id="theme-check-explicit" value="foo" data-nstest-theme="b"></button>
50       <button id="contains-html">Supports <sup>phrasing content</sup></button>
51       <button id="val-contains-html" value="<fake markup>"></button>
52     </div>
53   </div>
54 </body>
55 </html>