aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-01-14 19:49:28 +0100
committerMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-01-14 19:49:28 +0100
commit543d3d24eaefe09c4012171f30267783d51602dc (patch)
tree2680e1639420a97621bc02daef49ca529d3e6fde /test/unit/manipulation.js
parentc7c2855ed13f23322c4064407c1ed84561b95738 (diff)
downloadjquery-543d3d24eaefe09c4012171f30267783d51602dc.tar.gz
jquery-543d3d24eaefe09c4012171f30267783d51602dc.zip
Tests: Skip nonce tests in old iOS/Android as well
Old iOS & Android Browser versions support script-src but not nonce, making the nonce test impossible to run. Browsers not supporting CSP at all are not a problem as they'll skip script-src restrictions completely. Ref gh-3541 Ref gh-4269 Ref c7c2855ed13f23322c4064407c1ed84561b95738
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index c8d5cdefe..672f397ad 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -2850,8 +2850,11 @@ testIframe(
} );
},
- // Support: Edge 18+
+ // Support: Edge 18+, iOS 7-9 only, Android 4.0-4.4 only
// Edge doesn't support nonce in non-inline scripts.
// See https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/13246371/
- QUnit[ /\bedge\//i.test( navigator.userAgent ) ? "skip" : "test" ]
+ // Old iOS & Android Browser versions support script-src but not nonce, making this test
+ // impossible to run. Browsers not supporting CSP at all are not a problem as they'll skip
+ // script-src restrictions completely.
+ QUnit[ /\bedge\/|iphone os [789]|android 4\./i.test( navigator.userAgent ) ? "skip" : "test" ]
);