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>
30 <script src="../../../../../../tests/jqm-tchelper/tizen.testHelper.js"></script>
34 <h1 id="qunit-header">jQuery Mobile Collapsible Integration Test</h1>
35 <h2 id="qunit-banner"></h2>
36 <h2 id="qunit-userAgent"></h2>
40 <div data-nstest-role="page" id='basic-collapsible-test'>
41 <div data-nstest-role="header">
42 <h1>Basic collapsible</h1>
44 <div data-nstest-role="content">
45 <div data-nstest-role="collapsible">
48 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
49 have the "collapsed" state; you need to expand the header to see me.</p>
52 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
55 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
56 have the "collapsed" state; you need to expand the header to see me.</p>
62 <div data-nstest-role="page" id='basic-collapsible-set-test'>
63 <div data-nstest-role="header">
64 <h1>Basic collapsible</h1>
66 <div data-nstest-role="content">
67 <div data-nstest-role="collapsible-set">
68 <div data-nstest-role="collapsible">
71 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
72 have the "collapsed" state; you need to expand the header to see me.</p>
75 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
78 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
79 have the "collapsed" state; you need to expand the header to see me.</p>
82 <div data-nstest-role="collapsible">
85 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
86 have the "collapsed" state; you need to expand the header to see me.</p>
93 <div data-nstest-role="page" id='collapsible-set-with-lonely-collapsible-test'>
94 <div data-nstest-role="header">
95 <h1>Basic collapsible</h1>
97 <div data-nstest-role="content">
98 <div data-nstest-role="collapsible-set">
99 <div data-nstest-role="collapsible" >
102 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
103 have the "collapsed" state; you need to expand the header to see me.</p>
107 <div data-nstest-role="collapsible" >
110 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
111 have the "collapsed" state; you need to expand the header to see me.</p>
116 <div data-nstest-role="page" id='collapsible-with-custom-icons'>
117 <div data-nstest-role="header">
118 <h1>Custom icons for collapsibles</h1>
120 <div data-nstest-role="content">
121 <div data-nstest-role="collapsible">
124 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
125 have the "collapsed" state; you need to expand the header to see me.</p>
127 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
130 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
131 have the "collapsed" state; you need to expand the header to see me.</p>
134 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d">
137 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
138 have the "collapsed" state; you need to expand the header to see me.</p>
140 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d" data-nstest-collapsed="false">
143 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
144 have the "collapsed" state; you need to expand the header to see me.</p>
146 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="info" data-nstest-expanded-icon="info">
149 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
150 have the "collapsed" state; you need to expand the header to see me.</p>
156 <div data-nstest-role="page" id='collapsible-set-with-custom-icons'>
157 <div data-nstest-role="header">
158 <h1>Custom icons for collapsible sets</h1>
160 <div data-nstest-role="content">
161 <div data-nstest-role="collapsible-set">
162 <div data-nstest-role="collapsible">
165 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
166 have the "collapsed" state; you need to expand the header to see me.</p>
168 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
171 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
172 have the "collapsed" state; you need to expand the header to see me.</p>
175 <div data-nstest-role="collapsible-set" data-nstest-collapsed-icon="arrow-r" data-nstest-expanded-icon="arrow-d">
176 <div data-nstest-role="collapsible">
179 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
180 have the "collapsed" state; you need to expand the header to see me.</p>
182 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
185 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
186 have the "collapsed" state; you need to expand the header to see me.</p>
188 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-l" data-nstest-expanded-icon="arrow-u">
191 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
192 have the "collapsed" state; you need to expand the header to see me.</p>
194 <div data-nstest-role="collapsible" data-nstest-collapsed-icon="arrow-l" data-nstest-expanded-icon="arrow-u" data-nstest-collapsed="false">
197 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
198 have the "collapsed" state; you need to expand the header to see me.</p>
204 <div data-nstest-role="page" id='collapsible-with-theming'>
205 <div data-nstest-role="header">
206 <h1>Themed collapsibles</h1>
208 <div data-nstest-role="content">
209 <div data-nstest-role="collapsible" data-nstest-theme="a">
212 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
213 have the "collapsed" state; you need to expand the header to see me.</p>
215 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
218 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
219 have the "collapsed" state; you need to expand the header to see me.</p>
221 <div data-nstest-role="collapsible" data-nstest-theme="c" data-nstest-content-theme="c" data-nstest-collapsed="false">
224 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
225 have the "collapsed" state; you need to expand the header to see me.</p>
231 <div data-nstest-role="page" id='collapsible-set-with-theming'>
232 <div data-nstest-role="header">
233 <h1>Themed collapsibles</h1>
235 <div data-nstest-role="content">
236 <div data-nstest-role="collapsible-set" data-nstest-theme="d" data-nstest-content-theme="d">
237 <div data-nstest-role="collapsible" data-nstest-theme="a">
240 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
241 have the "collapsed" state; you need to expand the header to see me.</p>
243 <div data-nstest-role="collapsible" data-nstest-theme="b" data-nstest-content-theme="b">
246 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
247 have the "collapsed" state; you need to expand the header to see me.</p>
249 <div data-nstest-role="collapsible" data-nstest-collapsed="false">
252 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
253 have the "collapsed" state; you need to expand the header to see me.</p>
255 <div data-nstest-role="collapsible">
258 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
259 have the "collapsed" state; you need to expand the header to see me.</p>
266 <div data-nstest-role="page" id='collapsible-set-with-dynamic-content'>
267 <div data-nstest-role="header">
268 <h1>Collapsible Set with dynamic content</h1>
270 <div data-nstest-role="content">
271 <div data-nstest-role="collapsible-set"></div>
275 <div data-nstest-role="page" id='collapsible-set-with-static-and-dynamic-content'>
276 <div data-nstest-role="header">
277 <h1>Collapsible Set with dynamic content</h1>
279 <div data-nstest-role="content">
280 <div data-nstest-role="collapsible-set">
281 <div data-nstest-role="collapsible">
284 <p>I'm the collapsible content in a set so this feels like an accordion. I'm hidden by default because I
285 have the "collapsed" state; you need to expand the header to see me.</p>
291 <div data-nstest-role="page" id="collapsible-set-with-last-collapsible-expanded">
292 <div data-nstest-role="header">
293 <h1>uncollapsed collapsible</h1>
295 <div data-nstest-role="content">
296 <div data-nstest-role="collapsible-set">
297 <div data-nstest-role="collapsible">
298 <h1>Collapsible collapsed</h1>
299 <ul data-nstest-role="listview" data-inset="true">
300 <li data-nstest-theme="b">Swatch b</li>
301 <li data-nstest-theme="d">Swatch d</li>
304 <div data-nstest-role="collapsible" data-nstest-collapsed="false" data-nstest-content-theme="e">
305 <h1>Collapsible initial uncollapsed</h1>
306 <ul data-nstest-role="listview" data-nstest-inset="true">
307 <li data-nstest-theme="a">Swatch a</li>
308 <li data-nstest-theme="b">Swatch b</li>
315 <div data-nstest-role="page" id="collapsible-set-with-legends">
316 <div data-nstest-role="header">
317 <h1>Collapsible set with legends</h1>
319 <div data-nstest-role="content">
320 <form data-nstest-role="collapsible-set">
321 <fieldset data-nstest-role="collapsible">
322 <legend>Legend</legend>
323 <div data-nstest-role="controlgroup">
324 <input type="checkbox" name="checkbox-1" id="checkbox-1" />
325 <label for="checkbox-1">Checkbox</label>
328 <fieldset data-nstest-role="collapsible">
329 <legend>Legend</legend>
330 <div data-nstest-role="controlgroup">
331 <input type="checkbox" name="checkbox-2" id="checkbox-2" />
332 <label for="checkbox-2">Checkbox</label>
335 <fieldset data-nstest-role="collapsible">
336 <legend>Legend</legend>
337 <div data-nstest-role="controlgroup">
338 <input type="checkbox" name="checkbox-3" id="checkbox-3" />
339 <label for="checkbox-3">Checkbox</label>