This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
/
index.html
72 lines (68 loc) · 2.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery Mobile Button Test Suite</title>
<script src="../../../external/requirejs/require.js"></script>
<script src="../../../js/requirejs.config.js"></script>
<script src="../../../js/jquery.tag.inserter.js"></script>
<script src="../../jquery.setNameSpace.js"></script>
<script src="../../../tests/jquery.testHelper.js"></script>
<link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css"/>
<link rel="stylesheet" href="../../../external/qunit/qunit.css"/>
<link rel="stylesheet" href="../../jqm-tests.css"/>
<script src="../../../external/qunit/qunit.js"></script>
<script>
$.testHelper.asyncLoad([
[ "widgets/page" ],
[
"widgets/forms/button",
"jquery.mobile.buttonMarkup"
],
[ "jquery.mobile.init" ],
[
"button_core.js"
]
]);
</script>
<script src="../../swarminject.js"></script>
<style>
.ui-page-theme-p .ui-btn,
html .ui-bar-p .ui-btn,
html .ui-body-p .ui-btn,
html body .ui-btn.ui-btn-p,
html body .ui-group-theme-p .ui-btn,
[class*="ui-group-theme-"] .ui-btn.ui-btn-p,
/* Button visited */
.ui-page-theme-p .ui-btn:visited,
html .ui-bar-p .ui-btn:visited,
html .ui-body-p .ui-btn:visited,
html body .ui-btn.ui-btn-p:visited,
html body .ui-group-theme-p .ui-btn:visited,
[class*="ui-group-theme-"] .ui-btn.ui-btn-p:visited {
background: #000 /*{p-bup-background-color}*/;
}
</style>
</head>
<body>
<div id="qunit"></div>
<div data-nstest-role="page" data-nstest-theme="a">
<div data-nstest-role="content" data-nstest-theme="b">
<button class="should-be-native">foo</button>
<button id="enhanced">bar</button>
<button id="text">foo</button>
<button id="value" value="foo"></button>
<form id="hidden-element-addition-form" method="get" action="this will fail!">
<input type="submit" id="hidden-element-addition" name="foo" value="foo">foo</input>
</form>
<button id="theme-check" value="foo"></button>
<button id="theme-check-explicit" value="foo" data-nstest-theme="a"></button>
<button id="contains-html">Supports <sup>phrasing content</sup></button>
<input type="button" id="val-contains-html" value="<fake markup>"/>
<input type="button" id="disabled-state" value="ABC"/>
<div id="destroy-test-container"></div>
</div>
</div>
</body>
</html>