~noskcaj/ubuntu/utopic/jquery/merge

« back to all changes in this revision

Viewing changes to src/sizzle/test/index.html

  • Committer: Bazaar Package Importer
  • Author(s): Marcelo Jorge Vieira (metal)
  • Date: 2011-05-29 20:21:27 UTC
  • mfrom: (0.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110529202127-yo710urpsj87oqnh
Tags: 1.6.1-1
New upstream release (Closes: #628052)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
3
 
<head>
4
 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
 
        <title>Sizzle Test Suite</title>
6
 
        <link rel="Stylesheet" media="screen" href="qunit/qunit/qunit.css" />
7
 
        <script type="text/javascript" src="data/testinit.js"></script>
8
 
        <script type="text/javascript" src="jquery.js"></script>
9
 
        <script type="text/javascript" src="../sizzle.js"></script>
10
 
        <script type="text/javascript" src="data/sizzle-jquery.js"></script>
11
 
        <script type="text/javascript" src="qunit/qunit/qunit.js"></script>
12
 
        <script type="text/javascript" src="unit/selector.js"></script>
13
 
</head>
14
 
 
15
 
<body id="body">
16
 
        <h1 id="qunit-header">Sizzle Test Suite</h1>
17
 
        <h2 id="qunit-banner"></h2>
18
 
        <div id="qunit-testrunner-toolbar"></div>
19
 
        <h2 id="qunit-userAgent"></h2>
20
 
        <ol id="qunit-tests"></ol>
21
 
 
22
 
        <!-- Test HTML -->
23
 
        <div id="nothiddendiv" style="height:1px;background:white;" class="nothiddendiv">
24
 
                <div id="nothiddendivchild"></div>
25
 
        </div>
26
 
        <!-- this iframe is outside the #main so it won't reload constantly wasting time, but it means the tests must be "safe" and clean up after themselves -->
27
 
        <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
28
 
        <dl id="dl" style="position:absolute;top:-32767px;left:-32767px;">
29
 
        <div id="main">
30
 
                <p id="firstp">See <a id="simon1" href="http://simon.incutio.com/archive/2003/03/25/#getElementsBySelector" rel="bookmark">this blog entry</a> for more information.</p>
31
 
                <p id="ap">
32
 
                        Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>,
33
 
                        <a id="groups" href="http://groups.google.com/" class="GROUPS">Google Groups (Link)</a>.
34
 
                        This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>:
35
 
                        <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
36
 
 
37
 
                </p>
38
 
                <div id="foo">
39
 
                        <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
40
 
                        <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
41
 
                        <p id="sap">This link has <code><a href="#2" id="anchor2">class="blog"</a></code>: <a href="http://simon.incutio.com/" class="blog link" id="simon">Simon Willison's Weblog</a></p>
42
 
 
43
 
                </div>
44
 
                <span id="name+value"></span>
45
 
                <p id="first">Try them out:</p>
46
 
                <ul id="firstUL"></ul>
47
 
                <ol id="empty"></ol>
48
 
                <form id="form" action="formaction">
49
 
                        <label for="action" id="label-for">Action:</label>
50
 
                        <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
51
 
                        <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
52
 
                        <input type="radio" name="radio1" id="radio1" value="on"/>
53
 
 
54
 
                        <input type="radio" name="radio2" id="radio2" checked="checked"/>
55
 
                        <input type="checkbox" name="check" id="check1" checked="checked"/>
56
 
                        <input type="checkbox" id="check2" value="on"/>
57
 
 
58
 
                        <input type="hidden" name="hidden" id="hidden1"/>
59
 
                        <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
60
 
 
61
 
                        <input type="text" id="name" name="name" value="name" />
62
 
                        <input type="search" id="search" name="search" value="search" />
63
 
 
64
 
                        <button id="button" name="button" type="button">Button</button>
65
 
 
66
 
                        <textarea id="area1" maxlength="30">foobar</textarea>
67
 
 
68
 
                        <select name="select1" id="select1">
69
 
                                <option id="option1a" class="emptyopt" value="">Nothing</option>
70
 
                                <option id="option1b" value="1">1</option>
71
 
                                <option id="option1c" value="2">2</option>
72
 
                                <option id="option1d" value="3">3</option>
73
 
                        </select>
74
 
                        <select name="select2" id="select2">
75
 
                                <option id="option2a" class="emptyopt" value="">Nothing</option>
76
 
                                <option id="option2b" value="1">1</option>
77
 
                                <option id="option2c" value="2">2</option>
78
 
                                <option id="option2d" selected="selected" value="3">3</option>
79
 
                        </select>
80
 
                        <select name="select3" id="select3" multiple="multiple">
81
 
                                <option id="option3a" class="emptyopt" value="">Nothing</option>
82
 
                                <option id="option3b" selected="selected" value="1">1</option>
83
 
                                <option id="option3c" selected="selected" value="2">2</option>
84
 
                                <option id="option3d" value="3">3</option>
85
 
                                <option id="option3e">no value</option>
86
 
                        </select>
87
 
                        <select name="select4" id="select4" multiple="multiple">
88
 
                                <optgroup disabled="disabled">
89
 
                                        <option id="option4a" class="emptyopt" value="">Nothing</option>
90
 
                                        <option id="option4b" disabled="disabled" selected="selected" value="1">1</option>
91
 
                                        <option id="option4c" selected="selected" value="2">2</option>
92
 
                                </optgroup>
93
 
                                <option selected="selected" disabled="disabled" id="option4d" value="3">3</option>
94
 
                                <option id="option4e">no value</option>
95
 
                        </select>
96
 
                        <select name="select5" id="select5">
97
 
                                <option id="option5a" value="3">1</option>
98
 
                                <option id="option5b" value="2">2</option>
99
 
                                <option id="option5c" value="1">3</option>
100
 
                        </select>
101
 
 
102
 
                        <object id="object1" codebase="stupid">
103
 
                                <param name="p1" value="x1" />
104
 
                                <param name="p2" value="x2" />
105
 
                        </object>
106
 
 
107
 
                        <span id="台北Táiběi"></span>
108
 
                        <span id="台北" lang="中文"></span>
109
 
                        <span id="utf8class1" class="台北Táiběi 台北"></span>
110
 
                        <span id="utf8class2" class="台北"></span>
111
 
                        <span id="foo:bar" class="foo:bar"></span>
112
 
                        <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
113
 
 
114
 
                        <foo_bar id="foobar">test element</foo_bar>
115
 
                </form>
116
 
                <b id="floatTest">Float test.</b>
117
 
                <iframe id="iframe" name="iframe"></iframe>
118
 
                <form id="lengthtest">
119
 
                        <input type="text" id="length" name="test"/>
120
 
                        <input type="text" id="idTest" name="id"/>
121
 
                </form>
122
 
                <table id="table"></table>
123
 
 
124
 
                <form id="name-tests">
125
 
                        <!-- Inputs with a grouped name attribute. -->
126
 
                        <input name="types[]" id="types_all" type="checkbox" value="all" />
127
 
                        <input name="types[]" id="types_anime" type="checkbox" value="anime" />
128
 
                        <input name="types[]" id="types_movie" type="checkbox" value="movie" />
129
 
                </form>
130
 
 
131
 
                <form id="testForm" action="#" method="get">
132
 
                        <textarea name="T3" rows="2" cols="15">?
133
 
Z</textarea>
134
 
                        <input type="hidden" name="H1" value="x" />
135
 
                        <input type="hidden" name="H2" />
136
 
                        <input name="PWD" type="password" value="" />
137
 
                        <input name="T1" type="text" />
138
 
                        <input name="T2" type="text" value="YES" readonly="readonly" />
139
 
                        <input type="checkbox" name="C1" value="1" />
140
 
                        <input type="checkbox" name="C2" />
141
 
                        <input type="radio" name="R1" value="1" />
142
 
                        <input type="radio" name="R1" value="2" />
143
 
                        <input type="text" name="My Name" value="me" />
144
 
                        <input type="reset" name="reset" value="NO" />
145
 
                        <select name="S1">
146
 
                                <option value="abc">ABC</option>
147
 
                                <option value="abc">ABC</option>
148
 
                                <option value="abc">ABC</option>
149
 
                        </select>
150
 
                        <select name="S2" multiple="multiple" size="3">
151
 
                                <option value="abc">ABC</option>
152
 
                                <option value="abc">ABC</option>
153
 
                                <option value="abc">ABC</option>
154
 
                        </select>
155
 
                        <select name="S3">
156
 
                                <option selected="selected">YES</option>
157
 
                        </select>
158
 
                        <select name="S4">
159
 
                                <option value="" selected="selected">NO</option>
160
 
                        </select>
161
 
                        <input type="submit" name="sub1" value="NO" />
162
 
                        <input type="submit" name="sub2" value="NO" />
163
 
                        <input type="image" name="sub3" value="NO" />
164
 
                        <button name="sub4" type="submit" value="NO">NO</button>
165
 
                        <input name="D1" type="text" value="NO" disabled="disabled" />
166
 
                        <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
167
 
                        <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
168
 
                        <select name="D4" disabled="disabled">
169
 
                                <option selected="selected" value="NO">NO</option>
170
 
                        </select>
171
 
                </form>
172
 
                <div id="moretests">
173
 
                        <form>
174
 
                                <div id="checkedtest" style="display:none;">
175
 
                                        <input type="radio" name="checkedtestradios" checked="checked"/>
176
 
                                        <input type="radio" name="checkedtestradios" value="on"/>
177
 
                                        <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
178
 
                                        <input type="checkbox" name="checkedtestcheckboxes" />
179
 
                                </div>
180
 
                        </form>
181
 
                        <div id="nonnodes"><span>hi</span> there <!-- mon ami --></div>
182
 
                        <div id="t2037">
183
 
                                <div><div class="hidden">hidden</div></div>
184
 
                        </div>
185
 
                </div>
186
 
 
187
 
                <div id="tabindex-tests">
188
 
                        <ol id="listWithTabIndex" tabindex="5">
189
 
                                <li id="foodWithNegativeTabIndex" tabindex="-1">Rice</li>
190
 
                                <li id="foodNoTabIndex">Beans</li>
191
 
                                <li>Blinis</li>
192
 
                                <li>Tofu</li>
193
 
                        </ol>
194
 
 
195
 
                        <div id="divWithNoTabIndex">I'm hungry. I should...</div>
196
 
                        <span>...</span><a href="#" id="linkWithNoTabIndex">Eat lots of food</a><span>...</span> |
197
 
                        <span>...</span><a href="#" id="linkWithTabIndex" tabindex="2">Eat a little food</a><span>...</span> |
198
 
                        <span>...</span><a href="#" id="linkWithNegativeTabIndex" tabindex="-1">Eat no food</a><span>...</span>
199
 
                        <span>...</span><a id="linkWithNoHrefWithNoTabIndex">Eat a burger</a><span>...</span>
200
 
                        <span>...</span><a id="linkWithNoHrefWithTabIndex" tabindex="1">Eat some funyuns</a><span>...</span>
201
 
                        <span>...</span><a id="linkWithNoHrefWithNegativeTabIndex" tabindex="-1">Eat some funyuns</a><span>...</span>
202
 
                </div>
203
 
 
204
 
                <div id="liveHandlerOrder">
205
 
                        <span id="liveSpan1"><a href="#" id="liveLink1"></a></span>
206
 
                        <span id="liveSpan2"><a href="#" id="liveLink2"></a></span>
207
 
                </div>
208
 
 
209
 
                <div id="siblingTest">
210
 
                        <em id="siblingfirst">1</em>
211
 
                        <em id="siblingnext">2</em>
212
 
                </div>
213
 
        </div>
214
 
        </dl>
215
 
        <div id="fx-test-group" style="position:absolute;width:1px;height:1px;overflow:hidden;">
216
 
                <div id="fx-queue" name="test">
217
 
                        <div id="fadein" class='chain test' name='div'>fadeIn<div>fadeIn</div></div>
218
 
                        <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
219
 
 
220
 
                        <div id="show" class='chain test'>show<div>show</div></div>
221
 
                        <div id="hide" class='chain test out'>hide<div>hide</div></div>
222
 
 
223
 
                        <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
224
 
                        <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
225
 
 
226
 
 
227
 
                        <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
228
 
                        <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
229
 
 
230
 
                        <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
231
 
                        <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
232
 
 
233
 
                        <div id="fadetogglein" class='chain test'>fadeToggleIn<div>fadeToggleIn</div></div>
234
 
                        <div id="fadetoggleout" class='chain test out'>fadeToggleOut<div>fadeToggleOut</div></div>
235
 
 
236
 
                        <div id="fadeto" class='chain test'>fadeTo<div>fadeTo</div></div>
237
 
                </div>
238
 
 
239
 
                <div id="fx-tests"></div>
240
 
        </div>
241
 
</body>
242
 
</html>