@@ -406,7 +406,7 @@ test("pseudo - child", function() {
406406} ) ;
407407
408408test ( "pseudo - misc" , function ( ) {
409- expect ( 10 ) ;
409+ expect ( 19 ) ;
410410
411411 t ( "Headers" , ":header" , [ "qunit-header" , "qunit-banner" , "qunit-userAgent" ] ) ;
412412 t ( "Has Children - :has()" , "p:has(a)" , [ "firstp" , "ap" , "en" , "sap" ] ) ;
@@ -420,6 +420,30 @@ test("pseudo - misc", function() {
420420 t ( "Text Contains" , "a:contains(Google Groups (Link))" , [ "groups" ] ) ;
421421 t ( "Text Contains" , "a:contains((Link))" , [ "groups" ] ) ;
422422
423+ var tmp = document . createElement ( "div" ) ;
424+ tmp . id = "tmp_input" ;
425+ document . body . appendChild ( tmp ) ;
426+
427+ jQuery . each ( [ "button" , "submit" , "reset" ] , function ( i , type ) {
428+ var input = document . createElement ( "input" ) ;
429+ input . id = "input_" + type ;
430+ input . setAttribute ( "type" , type ) ;
431+ tmp . appendChild ( input ) ;
432+
433+ var button = document . createElement ( "button" ) ;
434+ button . id = "button_" + type ;
435+ button . setAttribute ( "type" , type ) ;
436+ tmp . appendChild ( button ) ;
437+
438+ t ( "Input Buttons :" + type , "#tmp_input :" + type , [ "input_" + type , "button_" + type ] ) ;
439+
440+ ok ( ( window . Sizzle || window . jQuery . find ) . matchesSelector ( input , ":" + type ) , "Input Matches :" + type ) ;
441+ ok ( ( window . Sizzle || window . jQuery . find ) . matchesSelector ( button , ":" + type ) , "Button Matches :" + type ) ;
442+ } ) ;
443+
444+
445+ document . body . removeChild ( tmp ) ;
446+
423447 var input = document . createElement ( "input" ) ;
424448 input . type = "text" ;
425449 input . id = "focus-input" ;
0 commit comments