3 <script type="text/javascript" src="../dist/jquery.js"></script>
4 <script type="text/javascript" src="data/testrunner.js"></script>
6 $(document).ready(function(){
\r
12 <style>.pass { color: green; } .fail { color: red; } #tests ol { display: none; }</style>
15 <h1>jQuery - Test Suite</h1>
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>
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>
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>
34 <p id="first">Try them out:</p>
\r
35 <ul id="firstUL"></ul>
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"/>
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"/>
46 <input type="hidden" name="hidden" id="hidden1"/>
47 <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>
\r
49 <input type="text" id="name" name="name" value="name" />
\r
51 <button id="button" name="button">Button</button>
\r
53 <textarea id="area1">foobar</textarea>
\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
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
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