5 <meta name="viewport" content="width=device-width, initial-scale=1">
6 <title>jQuery Mobile Collapsible Integration Test</title>
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="../../jquery.testHelper.js"></script>
12 <script src="../../../external/qunit.js"></script>
14 $.testHelper.asyncLoad([
16 "jquery.mobile.collapsible",
17 "jquery.mobile.collapsibleSet",
18 "jquery.mobile.page.sections"
20 [ "jquery.mobile.init" ],
26 <link rel="stylesheet" href="../../../css/themes/default/jquery.mobile.css" />
27 <link rel="stylesheet" href="../../../external/qunit.css"/>
29 <script src="../swarminject.js"></script>
33 <h1 id="qunit-header">jQuery Mobile Collapsible Integration Test</h1>
34 <h2 id="qunit-banner"></h2>
35 <h2 id="qunit-userAgent"></h2>
39 <div data-nstest-role="page" id='basic-collapsible-test'>
40 <div data-nstest-role="header">
41 <h1>Basic collapsible</h1>
43 <div data-nstest-role="content">
44 <div data-nstest-role="collapsible">
47 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
48 have the "collapsed" state; you need to expand the header to see me.</p>
51 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
54 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
55 have the "collapsed" state; you need to expand the header to see me.</p>
61 <div data-nstest-role="page" id='basic-collapsible-set-test'>
62 <div data-nstest-role="header">
63 <h1>Basic collapsible</h1>
65 <div data-nstest-role="content">
66 <div data-nstest-role="collapsible-set">
67 <div data-nstest-role="collapsible">
70 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
71 have the "collapsed" state; you need to expand the header to see me.</p>
74 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
77 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
78 have the "collapsed" state; you need to expand the header to see me.</p>
81 <div data-nstest-role="collapsible">
84 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
85 have the "collapsed" state; you need to expand the header to see me.</p>
92 <div data-nstest-role="page" id='collapsible-set-with-lonely-collapsible-test'>
93 <div data-nstest-role="header">
94 <h1>Basic collapsible</h1>
96 <div data-nstest-role="content">
97 <div data-nstest-role="collapsible-set">
98 <div data-nstest-role="collapsible" >
101 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
102 have the "collapsed" state; you need to expand the header to see me.</p>
106 <div data-nstest-role="collapsible" >
109 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
110 have the "collapsed" state; you need to expand the header to see me.</p>
115 <div data-nstest-role="page" id='collapsible-with-theming'>
116 <div data-nstest-role="header">
117 <h1>Themed collapsibles</h1>
119 <div data-nstest-role="content">
120 <div data-nstest-role="collapsible" data-nstest-theme="a">
123 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
124 have the "collapsed" state; you need to expand the header to see me.</p>
126 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
129 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
130 have the "collapsed" state; you need to expand the header to see me.</p>
132 <div data-nstest-role="collapsible" data-nstest-theme="c" data-nstest-content-theme="c" data-nstest-collapsed="false">
135 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
136 have the "collapsed" state; you need to expand the header to see me.</p>
142 <div data-nstest-role="page" id='collapsible-set-with-theming'>
143 <div data-nstest-role="header">
144 <h1>Themed collapsibles</h1>
146 <div data-nstest-role="content">
147 <div data-nstest-role="collapsible-set" data-nstest-theme="d" data-nstest-content-theme="d">
148 <div data-nstest-role="collapsible" data-nstest-theme="a">
151 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
152 have the "collapsed" state; you need to expand the header to see me.</p>
154 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
157 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
158 have the "collapsed" state; you need to expand the header to see me.</p>
160 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
163 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
164 have the "collapsed" state; you need to expand the header to see me.</p>
166 <div data-nstest-role="collapsible">
169 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
170 have the "collapsed" state; you need to expand the header to see me.</p>
177 <div data-nstest-role="page" id='collapsible-set-with-dynamic-content'>
178 <div data-nstest-role="header">
179 <h1>Collapsible Set with dynamic content</h1>
181 <div data-nstest-role="content">
182 <div data-nstest-role="collapsible-set"></div>
186 <div data-nstest-role="page" id='collapsible-set-with-static-and-dynamic-content'>
187 <div data-nstest-role="header">
188 <h1>Collapsible Set with dynamic content</h1>
190 <div data-nstest-role="content">
191 <div data-nstest-role="collapsible-set">
192 <div data-nstest-role="collapsible">
195 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
196 have the "collapsed" state; you need to expand the header to see me.</p>