Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Side by Side Diff: third_party/WebKit/LayoutTests/external/wpt/WebCryptoAPI/secure_context/crypto-subtle-secure-context-available.https.sub.html

Issue 2838603002: Added [SecureContext] to the subtle attribute (Closed)
Patch Set: Magic test starts doing differnt things out of the blue. Need to handle this properly. Avada Kedavr… Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 </head>
7 <body>
8 <script>
9 async_test(function(t) {
10 assert_true(typeof crypto.subtle !== 'undefined');
11 t.done();
12 }, "Secure context window has access to crypto.subtle");
13 async_test(function(t) {
14 var w = new Worker('../util/worker-report-crypto-subtle-presence.js');
15
16 w.onmessage = t.step_func(function (e) {
17 if (e.data.msg_type == 'subtle_crypto_found') {
18 assert_equals(e.data.msg_value, true);
19 t.done();
20 }
21 });
22
23 }, "Secure context worker has access to crypto.subtle");
24 </script>
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698