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