aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/support.js
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2015-06-14 00:50:05 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2015-06-14 01:56:51 +0200
commit8e111df641cca3e1b75b31a1971bfc89014b4ded (patch)
tree462718ddd8de38b121e48fc63abc352c8f11742b /test/unit/support.js
parentc17543fd3c14ff86c448dbb90f9fe1223661a73b (diff)
downloadjquery-8e111df641cca3e1b75b31a1971bfc89014b4ded.tar.gz
jquery-8e111df641cca3e1b75b31a1971bfc89014b4ded.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.
Diffstat (limited to 'test/unit/support.js')
-rw-r--r--test/unit/support.js26
1 files changed, 22 insertions, 4 deletions
diff --git a/test/unit/support.js b/test/unit/support.js
index 5a96d28a1..d1e0d189a 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -51,15 +51,13 @@ 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,
"boxSizingReliable": true,
"checkClone": true,
"checkOn": true,
- "clearCloneStyle": true,
+ "clearCloneStyle": false,
"cors": true,
"createHTMLDocument": true,
"focusin": false,
@@ -107,6 +105,26 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
"radioValue": false,
"reliableMarginRight": true
};
+ } 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,
+ "boxSizingReliable": true,
+ "checkClone": true,
+ "checkOn": true,
+ "clearCloneStyle": true,
+ "cors": true,
+ "createHTMLDocument": true,
+ "focusin": false,
+ "noCloneChecked": true,
+ "optDisabled": true,
+ "optSelected": true,
+ "pixelMarginRight": true,
+ "pixelPosition": true,
+ "radioValue": true,
+ "reliableMarginRight": true
+ };
} else if ( /8\.0(\.\d+|) safari/i.test( userAgent ) ) {
expected = {
"ajax": true,