diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-14 02:09:34 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2015-06-14 02:09:34 +0200 |
commit | 546593bdd29752def705b172380b737ce8758ba9 (patch) | |
tree | f498b8a4e2cfcdf6d4e0eb3f8f0688a1fd82032d /test/unit | |
parent | ef332c7c7b14533a078860e3e1527acfa59a26a7 (diff) | |
download | jquery-546593bdd29752def705b172380b737ce8758ba9.tar.gz jquery-546593bdd29752def705b172380b737ce8758ba9.zip |
Tests: Add Microsoft Edge results (from Windows 10 build 10130)
The Microsoft Edge user agent contains "Chrome" so it needs to be checked
before Chrome.
Refs 8e111df641cca3e1b75b31a1971bfc89014b4ded
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/support.js | 40 |
1 files changed, 36 insertions, 4 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index fcbf5600b..99ecb33f9 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -68,9 +68,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec var expected, userAgent = window.navigator.userAgent; - if ( /chrome/i.test( userAgent ) ) { - // Catches Chrome on Android as well (i.e. the default - // Android browser on Android >= 4.4). + if ( /edge\/12/i.test( userAgent ) ) { expected = { "ajax": true, "attributes": true, @@ -78,7 +76,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "change": true, "checkClone": true, "checkOn": true, - "clearCloneStyle": true, + "clearCloneStyle": false, "cors": true, "createHTMLDocument": true, "cssFloat": true, @@ -198,6 +196,40 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec "style": false, "submit": false }; + } else if ( /chrome/i.test( userAgent ) ) { + // Catches Chrome on Android as well (i.e. the default + // Android browser on Android >= 4.4). + expected = { + "ajax": true, + "attributes": true, + "boxSizingReliable": true, + "change": true, + "checkClone": true, + "checkOn": true, + "clearCloneStyle": true, + "cors": true, + "createHTMLDocument": true, + "cssFloat": true, + "deleteExpando": true, + "focusin": false, + "html5Clone": true, + "htmlSerialize": true, + "input": true, + "leadingWhitespace": true, + "noCloneChecked": true, + "noCloneEvent": true, + "opacity": true, + "optDisabled": true, + "optSelected": true, + "ownLast": false, + "pixelMarginRight": true, + "pixelPosition": true, + "radioValue": true, + "reliableHiddenOffsets": true, + "reliableMarginRight": true, + "style": true, + "submit": true + }; } else if ( /8\.0(\.\d+|) safari/i.test( userAgent ) ) { expected = { "ajax": true, |