11cb0ef41Sopenharmony_ci<!DOCTYPE html> 21cb0ef41Sopenharmony_ci<html> 31cb0ef41Sopenharmony_ci<head> 41cb0ef41Sopenharmony_ci<script src="/resources/testharness.js"></script> 51cb0ef41Sopenharmony_ci<script src="/resources/testharnessreport.js"></script> 61cb0ef41Sopenharmony_ci</head> 71cb0ef41Sopenharmony_ci<body> 81cb0ef41Sopenharmony_ci <script> 91cb0ef41Sopenharmony_ci async_test(function(t) { 101cb0ef41Sopenharmony_ci assert_not_equals(typeof crypto.subtle, 'undefined'); 111cb0ef41Sopenharmony_ci t.done(); 121cb0ef41Sopenharmony_ci }, "Secure context window has access to crypto.subtle"); 131cb0ef41Sopenharmony_ci async_test(function(t) { 141cb0ef41Sopenharmony_ci var w = new Worker('../util/worker-report-crypto-subtle-presence.js'); 151cb0ef41Sopenharmony_ci 161cb0ef41Sopenharmony_ci w.onmessage = t.step_func(function (e) { 171cb0ef41Sopenharmony_ci if (e.data.msg_type == 'subtle_crypto_found') { 181cb0ef41Sopenharmony_ci assert_equals(e.data.msg_value, true); 191cb0ef41Sopenharmony_ci t.done(); 201cb0ef41Sopenharmony_ci } 211cb0ef41Sopenharmony_ci }); 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci }, "Secure context worker has access to crypto.subtle"); 241cb0ef41Sopenharmony_ci </script> 251cb0ef41Sopenharmony_ci</body> 261cb0ef41Sopenharmony_ci</html> 27