Skip to content

Commit 0b0d4c6

Browse files
committed
Tests: Fix manipulation tests in Android 4.4
Chromium < 35 incorrectly upper-cases µ; Android 4.4 uses such a version by default (and its WebView, being un-updatable, will use it for eternity) so we need to blacklist that one for the tests to pass.
1 parent 2868db0 commit 0b0d4c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/manipulation.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,18 @@ QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function
527527
}
528528

529529
function assertSpecialCharsSupport( method, characters ) {
530+
// Support: Android 4.4 only
531+
// Chromium < 35 incorrectly upper-cases µ; Android 4.4 uses such a version by default
532+
// (and its WebView, being un-updatable, will use it for eternity) so we need to blacklist
533+
// that one for the tests to pass.
534+
if ( characters === "µ" && /chrome/i.test( navigator.userAgent ) &&
535+
navigator.userAgent.match( /chrome\/(\d+)/i )[ 1 ] < 35 ) {
536+
assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" );
537+
assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" );
538+
assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" );
539+
return;
540+
}
541+
530542
var child,
531543
codepoint = characters.charCodeAt( 0 ).toString( 16 ).toUpperCase(),
532544
description = characters.length === 1 ?

0 commit comments

Comments
 (0)