Files
firefox/testing/web-platform/tests/WebCryptoAPI/secure_context/crypto-subtle-secure-context-available.https.sub.html
T
Sam SneddonandJan-Ivar Bruaroey be45cf8650 Bug 1659864 [wpt PR 25086] - Replace ===/!== in assert_true/false, a=testonly
Automatic update from web-platform-tests
Replace assert_true(x === y) with assert_equals

--
Replace assert_false(x === y) with assert_not_equals

--
Replace assert_true(x !== y) with assert_not_equals

--
Replace assert_true(x == y) with assert_equals

--
Replace assert_false(x == y) with assert_not_equals

--
Replace assert_true(x != y) with assert_not_equals

--
Fix actual/expected argument order

Co-authored-by: Jan-Ivar Bruaroey <[email protected]>

--

wpt-commits: e2ddf48b78209d0aef4fa513b53a9f28243c9335, d80a3bccd7b88a7810522c6a1e317a53b0daad57, 54ee81d1501b46e990bc1a1cde162949f7d0ba71, d4beec831b7484382a25bca41b1449b68c235d0a, 278cf9fd6cfb113fd72dc5186534db239cde9e29, e1f3c83b5abc4d122e92db3c390aa8c9b8b4b792, 3cabe516b8e1234ccafd4f5e8aef7f9663b2f53f
wpt-pr: 25086
2020-09-25 19:29:25 +00:00

27 lines
717 B
HTML

<!DOCTYPE html>
<html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
async_test(function(t) {
assert_not_equals(typeof crypto.subtle, 'undefined');
t.done();
}, "Secure context window has access to crypto.subtle");
async_test(function(t) {
var w = new Worker('../util/worker-report-crypto-subtle-presence.js');
w.onmessage = t.step_func(function (e) {
if (e.data.msg_type == 'subtle_crypto_found') {
assert_equals(e.data.msg_value, true);
t.done();
}
});
}, "Secure context worker has access to crypto.subtle");
</script>
</body>
</html>