Fixed #1599 as Brandon suggested to ignore negative values to width and height css...
[jquery.git] / test / index.html
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>jQuery Test Suite</title>
6         <link rel="Stylesheet" media="screen" href="data/testsuite.css" />
7         <script>var jQuery = "jQuery", $ = "$"; // For testing .noConflict()</script>
8         <script type="text/javascript" src="../dist/jquery.js"></script>
9         <script type="text/javascript" src="data/testrunner.js"></script>
10         <script type="text/javascript" src="unit/core.js"></script>
11         <script type="text/javascript" src="unit/selector.js"></script>
12         <script type="text/javascript" src="unit/event.js"></script>
13         <script type="text/javascript" src="unit/ajax.js"></script>
14         <script type="text/javascript" src="unit/fx.js"></script>
15 </head>
16
17 <body id="body">
18         <h1 id="header">jQuery Test Suite</h1>
19         <h2 id="banner"></h2>
20         <h2 id="userAgent"></h2>
21         
22         <!-- Test HTML -->
23         <div id="nothiddendiv" style="height:1px;background:white;"></div>
24         <dl id="dl" style="display:none;">
25         <div id="main" style="display: none;">
26                 <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>
27                 <p id="ap">
28                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
29                         <a id="groups" href="http://groups.google.com/">Google Groups</a>. 
30                         This link has <code><a href="http://smin" id="anchor1">class="blog"</a></code>: 
31                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
32
33                 </p>
34                 <div id="foo">
35                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
36                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
37                         <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>
38
39                 </div>
40                 <p id="first">Try them out:</p>
41                 <ul id="firstUL"></ul>
42                 <ol id="empty"></ol>
43                 <form id="form" action="formaction">
44                         <input type="text" name="action" value="Test" id="text1" maxlength="30"/>
45                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
46                         <input type="radio" name="radio1" id="radio1" value="on"/>
47
48                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
49                         <input type="checkbox" name="check" id="check1" checked="checked"/>
50                         <input type="checkbox" id="check2" value="on"/>
51
52                         <input type="hidden" name="hidden" id="hidden1"/>
53                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
54                         
55                         <input type="text" id="name" name="name" value="name" />
56                         
57                         <button id="button" name="button">Button</button>
58                         
59                         <textarea id="area1" maxlength="30">foobar</textarea>
60                         
61                         <select name="select1" id="select1">
62                                 <option id="option1a" value="">Nothing</option>
63                                 <option id="option1b" value="1">1</option>
64                                 <option id="option1c" value="2">2</option>
65                                 <option id="option1d" value="3">3</option>
66                         </select>
67                         <select name="select2" id="select2">
68                                 <option id="option2a" value="">Nothing</option>
69                                 <option id="option2b" value="1">1</option>
70                                 <option id="option2c" value="2">2</option>
71                                 <option id="option2d" selected="selected" value="3">3</option>
72                         </select>
73                         <select name="select3" id="select3" multiple="multiple">
74                                 <option id="option3a" value="">Nothing</option>
75                                 <option id="option3b" selected="selected" value="1">1</option>
76                                 <option id="option3c" selected="selected" value="2">2</option>
77                                 <option id="option3d" value="3">3</option>
78                         </select>
79                         
80                         <object id="object1" codebase="stupid">
81                                 <param name="p1" value="x1" />
82                                 <param name="p2" value="x2" />
83                         </object>
84                         
85                         <span id="台北Táiběi"></span>
86                         <span id="台北" lang="中文"></span>
87                         <span id="utf8class1" class="台北Táiběi 台北"></span>
88                         <span id="utf8class2" class="台北"></span>
89                         <span id="foo:bar" class="foo:bar"></span>
90                         <span id="test.foo[5]bar" class="test.foo[5]bar"></span>
91                         
92                         <foo_bar id="foobar">test element</foo_bar>
93                 </form>
94                 <b id="floatTest">Float test.</b>
95                 <iframe id="iframe" name="iframe"></iframe>
96                 <form id="lengthtest">
97                         <input type="text" id="length" name="test"/>
98                         <input type="text" id="idTest" name="id"/>
99                 </form>
100                 <table id="table"></table>
101                 
102                 <div id="fx-queue">
103                         <div id="fadein" class='chain test'>fadeIn<div>fadeIn</div></div>
104                         <div id="fadeout" class='chain test out'>fadeOut<div>fadeOut</div></div>
105                         
106                         <div id="show" class='chain test'>show<div>show</div></div>
107                         <div id="hide" class='chain test out'>hide<div>hide</div></div>
108                         
109                         <div id="togglein" class='chain test'>togglein<div>togglein</div></div>
110                         <div id="toggleout" class='chain test out'>toggleout<div>toggleout</div></div>
111                 
112                         
113                         <div id="slideup" class='chain test'>slideUp<div>slideUp</div></div>
114                         <div id="slidedown" class='chain test out'>slideDown<div>slideDown</div></div>
115                         
116                         <div id="slidetogglein" class='chain test'>slideToggleIn<div>slideToggleIn</div></div>
117                         <div id="slidetoggleout" class='chain test out'>slideToggleOut<div>slideToggleOut</div></div>
118                 </div>
119                 
120                 <div id="fx-tests"></div>
121
122                 <form id="testForm" action="#" method="get">
123                         <textarea name="T3" rows="2" cols="15">?
124 Z</textarea>
125                         <input type="hidden" name="H1" value="x" />
126                         <input type="hidden" name="H2" />
127                         <input name="PWD" type="password" value="" />
128                         <input name="T1" type="text" />
129                         <input name="T2" type="text" value="YES" readonly="readonly" />
130                         <input type="checkbox" name="C1" value="1" />
131                         <input type="checkbox" name="C2" />
132                         <input type="radio" name="R1" value="1" />
133                         <input type="radio" name="R1" value="2" />
134                         <input type="text" name="My Name" value="me" />
135                         <input type="reset" name="reset" value="NO" />
136                         <select name="S1">
137                                 <option value="abc">ABC</option>
138                                 <option value="abc">ABC</option>
139                                 <option value="abc">ABC</option>
140                         </select>
141                         <select name="S2" multiple="multiple" size="3">
142                                 <option value="abc">ABC</option>
143                                 <option value="abc">ABC</option>
144                                 <option value="abc">ABC</option>
145                         </select>
146                         <select name="S3">
147                                 <option selected="selected">YES</option>
148                         </select>
149                         <select name="S4">
150                                 <option value="" selected="selected">NO</option>
151                         </select>
152                         <input type="submit" name="sub1" value="NO" />
153                         <input type="submit" name="sub2" value="NO" />
154                         <input type="image" name="sub3" value="NO" src="submit.gif" />
155                         <button name="sub4" type="submit" value="NO">NO</button>
156                         <input name="D1" type="text" value="NO" disabled="disabled" />
157                         <input type="checkbox" checked="checked" disabled="disabled" name="D2" value="NO" />
158                         <input type="radio" name="D3" value="NO" checked="checked" disabled="disabled" />
159                         <select name="D4" disabled="disabled">
160                                 <option selected="selected" value="NO">NO</option>
161                         </select>
162                 </form>
163                 <div id="moretests">
164                         <form>
165                                 <div id="checkedtest" style="display:none;">
166                                         <input type="radio" name="checkedtestradios" checked="checked"/>
167                                         <input type="radio" name="checkedtestradios" value="on"/>
168                                         <input type="checkbox" name="checkedtestcheckboxes" checked="checked"/>
169                                         <input type="checkbox" name="checkedtestcheckboxes" />
170                                 </div>
171                         </form>
172                 </div>
173         </div>
174         </dl>
175         
176         <ol id="tests"></ol>
177 </body>
178 </html>