css('display') works slightly differently in Safari. Also, the test suite having...
[jquery.git] / build / test / index.html
1 <html id="html">
2 <head>
3         <script type="text/javascript" src="../dist/jquery.js"></script>
4         <script type="text/javascript" src="data/testrunner.js"></script>
5         <script>
6         $(document).ready(function(){\r
7                 runTest(function() {
8                         {TESTS}\r
9                 });\r
10         });
11         </script>
12         <style>.pass { color: green; } .fail { color: red; } #tests ol { display: none; }</style>
13 </head>
14 <body id="body">
15         <h1>jQuery - Test Suite</h1>
16         
17         <!-- Test HTML -->
18         <dl style="display:none;">
19         <div id="main" style="display: none;">
20                 <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>
21                 <p id="ap">
22                         Here are some links in a normal paragraph: <a id="google" href="http://www.google.com/" title="Google!">Google</a>, 
23                         <a id="groups" href="http://groups.google.com/">Google Groups</a>. 
24                         This link has <code><a href="#" id="anchor1">class="blog"</a></code>: 
25                         <a href="http://diveintomark.org/" class="blog" hreflang="en" id="mark">diveintomark</a>
26
27                 </p>
28                 <div id="foo">
29                         <p id="sndp">Everything inside the red border is inside a div with <code>id="foo"</code>.</p>
30                         <p lang="en" id="en">This is a normal link: <a id="yahoo" href="http://www.yahoo.com/" class="blogTest">Yahoo</a></p>
31                         <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>
32
33                 </div>\r
34                 <p id="first">Try them out:</p>\r
35                 <ul id="firstUL"></ul>
36                 <ol id="empty"></ol>
37                 <form id="form" action="formaction">\r
38                         <input type="text" name="action" value="Test" id="text1"/>
39                         <input type="text" name="text2" value="Test" id="text2" disabled="disabled"/>
40                         <input type="radio" name="radio1" id="radio1"/>
41
42                         <input type="radio" name="radio2" id="radio2" checked="checked"/>
43                         <input type="checkbox" name="check" id="check1" checked="checked"/>
44                         <input type="checkbox" id="check2"/>
45
46                         <input type="hidden" name="hidden" id="hidden1"/>
47                         <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>\r
48                         \r
49                         <input type="text" id="name" name="name" value="name" />\r
50                         \r
51                         <button id="button" name="button">Button</button>\r
52                         \r
53                         <textarea id="area1">foobar</textarea>\r
54                         \r
55                         <select name="select1" id="select1">\r
56                                 <option id="option1a" value="">Nothing</option>\r
57                                 <option id="option1b" value="1">1</option>\r
58                                 <option id="option1c" value="2">2</option>\r
59                                 <option id="option1d" value="3">3</option>\r
60                         </select>\r
61                         <select name="select2" id="select2">\r
62                                 <option id="option2a" value="">Nothing</option>\r
63                                 <option id="option2b" value="1">1</option>\r
64                                 <option id="option2c" value="2">2</option>\r
65                                 <option id="option2d" selected="selected" value="3">3</option>\r
66                         </select>\r
67                         <select name="select3" id="select3" multiple="multiple">\r
68                                 <option id="option3a" value="">Nothing</option>\r
69                                 <option id="option3b" selected="selected" value="1">1</option>\r
70                                 <option id="option3c" selected="selected" value="2">2</option>\r
71                                 <option id="option3d" value="3">3</option>\r
72                         </select>
73                 </form>
74         </div>
75         </dl>
76         
77         <ol id="tests"></ol>
78 </body>
79 </html>