Permalink
Browse files

Add unit test for bug #8380.

  • Loading branch information...
1 parent 74fde49 commit 4fb0433edfdee8148c98e86ef42d9259c584ea03 @mathiasbynens mathiasbynens committed Mar 1, 2011
Showing with 4 additions and 2 deletions.
  1. +2 −0 test/index.html
  2. +2 −2 test/unit/selector.js
View
@@ -58,6 +58,8 @@ <h2 id="qunit-userAgent"></h2>
<input type="hidden" name="hidden" id="hidden1"/>
<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="search" id="search" name="search" value="search" />
@@ -513,10 +513,10 @@ test("pseudo - visibility", function() {
test("pseudo - form", function() {
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 :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 :checkbox:checked", "#form :checkbox:checked", ["check1"] );
t( "Form element :radio:checked, :checkbox:checked", "#form :radio:checked, #form :checkbox:checked", ["radio2", "check1"] );

0 comments on commit 4fb0433

Please sign in to comment.