MCPcopy Index your code
hub / github.com/jquery/jquery / assertNoMatch

Function assertNoMatch

test/unit/selector.js:1539–1551  ·  view source on GitHub ↗
( text, elem, selector )

Source from the content-addressed store, hash-verified

1537 assert.ok( jQuery( elem ).is( selector ), text + " match " + selector );
1538 },
1539 assertNoMatch = function( text, elem, selector ) {
1540
1541 // Support: Chrome 141 only
1542 // Chrome 141 incorrectly matches `:lang()` selectors with values with a trailing `-`.
1543 // This is fixed in Chrome 142, so just skip these tests in v141.
1544 // See https://issues.chromium.org/issues/451355198
1545 if ( /\b(?:headless)?chrome\/141\./i.test( navigator.userAgent ) &&
1546 selector.slice( -2 ) === "-)" ) {
1547 assert.ok( true, "Broken handling in Chrome 141: " + text + " fail " + selector );
1548 } else {
1549 assert.ok( !jQuery( elem ).is( selector ), text + " fail " + selector );
1550 }
1551 };
1552
1553 // Prefixing and inheritance
1554 assert.ok( jQuery( docElem ).is( ":lang(" + docElem.lang + ")" ), "starting :lang" );

Callers 1

testLangFunction · 0.85

Calls 1

jQueryFunction · 0.50

Tested by

no test coverage detected