Skip to content

Commit

Permalink
Add unit test for bug #8380.
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Mar 1, 2011
1 parent 74fde49 commit 4fb0433
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions test/index.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ <h2 id="qunit-userAgent"></h2>
<input type="hidden" name="hidden" id="hidden1"/> <input type="hidden" name="hidden" id="hidden1"/>
<input type="text" style="display:none;" name="foo[bar]" id="hidden2"/> <input type="text" style="display:none;" name="foo[bar]" id="hidden2"/>


<input id="impliedText"/>

<input type="text" id="name" name="name" value="name" /> <input type="text" id="name" name="name" value="name" />
<input type="search" id="search" name="search" value="search" /> <input type="search" id="search" name="search" value="search" />


Expand Down
4 changes: 2 additions & 2 deletions test/unit/selector.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ test("pseudo - visibility", function() {
test("pseudo - form", function() { test("pseudo - form", function() {
expect(8); expect(8);


t( "Form element :input", "#form :input", ["text1", "text2", "radio1", "radio2", "check1", "check2", "hidden1", "hidden2", "name", "search", "button", "area1", "select1", "select2", "select3", "select4", "select5"] ); t( "Form element :input", "#form :input", ["text1", "text2", "radio1", "radio2", "check1", "check2", "hidden1", "hidden2", "impliedText", "name", "search", "button", "area1", "select1", "select2", "select3", "select4", "select5"] );
t( "Form element :radio", "#form :radio", ["radio1", "radio2"] ); t( "Form element :radio", "#form :radio", ["radio1", "radio2"] );
t( "Form element :checkbox", "#form :checkbox", ["check1", "check2"] ); t( "Form element :checkbox", "#form :checkbox", ["check1", "check2"] );
t( "Form element :text", "#form :text", ["text1", "text2", "hidden2", "name"] ); t( "Form element :text", "#form :text", ["text1", "text2", "hidden2", "impliedText", "name"] );
t( "Form element :radio:checked", "#form :radio:checked", ["radio2"] ); t( "Form element :radio:checked", "#form :radio:checked", ["radio2"] );
t( "Form element :checkbox:checked", "#form :checkbox:checked", ["check1"] ); t( "Form element :checkbox:checked", "#form :checkbox:checked", ["check1"] );
t( "Form element :radio:checked, :checkbox:checked", "#form :radio:checked, #form :checkbox:checked", ["radio2", "check1"] ); t( "Form element :radio:checked, :checkbox:checked", "#form :radio:checked, #form :checkbox:checked", ["radio2", "check1"] );
Expand Down

0 comments on commit 4fb0433

Please sign in to comment.