diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-01-27 12:02:00 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-01-27 12:02:00 +0100 |
commit | 0b0d4c634ab8a953a58bf531dd93e0ea4d632fdd (patch) | |
tree | c44c999a6ddad3dbe29ae4af9f95becacce6fab2 /test | |
parent | 2868db0d41b8d1d7b141c0494c262120dd9864b7 (diff) | |
download | jquery-0b0d4c634ab8a953a58bf531dd93e0ea4d632fdd.tar.gz jquery-0b0d4c634ab8a953a58bf531dd93e0ea4d632fdd.zip |
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.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/manipulation.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 1346cc06a..fb63e44fc 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -527,6 +527,18 @@ QUnit.test( "Tag name processing respects the HTML Standard (gh-2005)", function } function assertSpecialCharsSupport( method, characters ) { + // Support: Android 4.4 only + // 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. + if ( characters === "µ" && /chrome/i.test( navigator.userAgent ) && + navigator.userAgent.match( /chrome\/(\d+)/i )[ 1 ] < 35 ) { + assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" ); + assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" ); + assert.ok( true, "This Chromium version upper-cases µ incorrectly; skip test" ); + return; + } + var child, codepoint = characters.charCodeAt( 0 ).toString( 16 ).toUpperCase(), description = characters.length === 1 ? |