mirror of
https://github.com/jquery/jquery.git
synced 2024-12-09 08:04:24 +00:00
Tests: Skip the native :valid tests in IE 9
A newly added test making sure a native selector containing the `:valid` pseudo works when no jQuery-specific selectors are used was failing in IE 9 as that browser lacks support for this pseudo. This commit disables that test in IE 9. Ref gh-5178
This commit is contained in:
parent
848de62542
commit
6b2094da79
@ -431,7 +431,11 @@ QUnit.test( "comma-separated", function( assert ) {
|
|||||||
assert.equal( fixture.find( "h2\t,\rdiv p" ).filter( "h2" ).length, 1, "has to find one <h2>" );
|
assert.equal( fixture.find( "h2\t,\rdiv p" ).filter( "h2" ).length, 1, "has to find one <h2>" );
|
||||||
} );
|
} );
|
||||||
|
|
||||||
QUnit.test( "comma-separated, only supported natively (gh-5177)", function( assert ) {
|
// Support: IE 9 only
|
||||||
|
// IE 9 doesn't support the `:valid` pseudo natively; skip the test there.
|
||||||
|
QUnit[
|
||||||
|
/msie 9\.0/i.test( window.navigator.userAgent ) ? "skip" : "test"
|
||||||
|
]( "comma-separated, only supported natively (gh-5177)", function( assert ) {
|
||||||
assert.expect( 5 );
|
assert.expect( 5 );
|
||||||
|
|
||||||
var fixture = jQuery( "<div><input/><span></span></div>" );
|
var fixture = jQuery( "<div><input/><span></span></div>" );
|
||||||
|
Loading…
Reference in New Issue
Block a user