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 "widgets/collapsible",
17 "widgets/collapsibleSet",
18 "widgets/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-custom-icons'>
116 <div data-nstest-role="header">
117 <h1>Custom icons for collapsibles</h1>
119 <div data-nstest-role="content">
120 <div data-nstest-role="collapsible">
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-collapsed="false">
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>
133 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d">
136 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
137 have the "collapsed" state; you need to expand the header to see me.</p>
139 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d" data-nstest-collapsed="false">
142 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
143 have the "collapsed" state; you need to expand the header to see me.</p>
145 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="info" data-nstest-expanded-icon="info">
148 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
149 have the "collapsed" state; you need to expand the header to see me.</p>
155 <div data-nstest-role="page" id='collapsible-set-with-custom-icons'>
156 <div data-nstest-role="header">
157 <h1>Custom icons for collapsible sets</h1>
159 <div data-nstest-role="content">
160 <div data-nstest-role="collapsible-set">
161 <div data-nstest-role="collapsible">
164 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
165 have the "collapsed" state; you need to expand the header to see me.</p>
167 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
170 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
171 have the "collapsed" state; you need to expand the header to see me.</p>
174 <div data-nstest-role="collapsible-set" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d">
175 <div data-nstest-role="collapsible">
178 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
179 have the "collapsed" state; you need to expand the header to see me.</p>
181 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
184 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
185 have the "collapsed" state; you need to expand the header to see me.</p>
187 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-l" data-nstest-expanded-icon="arrow-u">
190 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
191 have the "collapsed" state; you need to expand the header to see me.</p>
193 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-l" data-nstest-expanded-icon="arrow-u" data-nstest-collapsed="false">
196 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
197 have the "collapsed" state; you need to expand the header to see me.</p>
203 <div data-nstest-role="page" id='collapsible-with-theming'>
204 <div data-nstest-role="header">
205 <h1>Themed collapsibles</h1>
207 <div data-nstest-role="content">
208 <div data-nstest-role="collapsible" data-nstest-theme="a">
211 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
212 have the "collapsed" state; you need to expand the header to see me.</p>
214 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
217 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
218 have the "collapsed" state; you need to expand the header to see me.</p>
220 <div data-nstest-role="collapsible" data-nstest-theme="c" data-nstest-content-theme="c" data-nstest-collapsed="false">
223 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
224 have the "collapsed" state; you need to expand the header to see me.</p>
230 <div data-nstest-role="page" id='collapsible-set-with-theming'>
231 <div data-nstest-role="header">
232 <h1>Themed collapsibles</h1>
234 <div data-nstest-role="content">
235 <div data-nstest-role="collapsible-set" data-nstest-theme="d" data-nstest-content-theme="d">
236 <div data-nstest-role="collapsible" data-nstest-theme="a">
239 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
240 have the "collapsed" state; you need to expand the header to see me.</p>
242 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
245 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
246 have the "collapsed" state; you need to expand the header to see me.</p>
248 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
251 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
252 have the "collapsed" state; you need to expand the header to see me.</p>
254 <div data-nstest-role="collapsible">
257 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
258 have the "collapsed" state; you need to expand the header to see me.</p>
265 <div data-nstest-role="page" id='collapsible-set-with-dynamic-content'>
266 <div data-nstest-role="header">
267 <h1>Collapsible Set with dynamic content</h1>
269 <div data-nstest-role="content">
270 <div data-nstest-role="collapsible-set"></div>
274 <div data-nstest-role="page" id='collapsible-set-with-static-and-dynamic-content'>
275 <div data-nstest-role="header">
276 <h1>Collapsible Set with dynamic content</h1>
278 <div data-nstest-role="content">
279 <div data-nstest-role="collapsible-set">
280 <div data-nstest-role="collapsible">
283 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
284 have the "collapsed" state; you need to expand the header to see me.</p>
290 <div data-nstest-role="page" id="collapsible-set-with-last-collapsible-expanded">
291 <div data-nstest-role="header">
292 <h1>uncollapsed collapsible</h1>
294 <div data-nstest-role="content">
295 <div data-nstest-role="collapsible-set">
296 <div data-nstest-role="collapsible">
297 <h1>Collapsible collapsed</h1>
298 <ul data-nstest-role="listview" data-inset="true">
299 <li data-nstest-theme="b">Swatch b</li>
300 <li data-nstest-theme="d">Swatch d</li>
303 <div data-nstest-role="collapsible" data-nstest-collapsed="false" data-nstest-content-theme="e">
304 <h1>Collapsible initial uncollapsed</h1>
305 <ul data-nstest-role="listview" data-nstest-inset="true">
306 <li data-nstest-theme="a">Swatch a</li>
307 <li data-nstest-theme="b">Swatch b</li>
314 <div data-nstest-role="page" id="collapsible-set-with-legends">
315 <div data-nstest-role="header">
316 <h1>Collapsible set with legends</h1>
318 <div data-nstest-role="content">
319 <form data-nstest-role="collapsible-set">
320 <fieldset data-nstest-role="collapsible">
321 <legend>Legend</legend>
322 <div data-nstest-role="controlgroup">
323 <input type="checkbox" name="checkbox-1" id="checkbox-1" />
324 <label for="checkbox-1">Checkbox</label>
327 <fieldset data-nstest-role="collapsible">
328 <legend>Legend</legend>
329 <div data-nstest-role="controlgroup">
330 <input type="checkbox" name="checkbox-2" id="checkbox-2" />
331 <label for="checkbox-2">Checkbox</label>
334 <fieldset data-nstest-role="collapsible">
335 <legend>Legend</legend>
336 <div data-nstest-role="controlgroup">
337 <input type="checkbox" name="checkbox-3" id="checkbox-3" />
338 <label for="checkbox-3">Checkbox</label>