document-api-insecure-context.tentative.http.html (514B)
1 <!doctype html> 2 <body> 3 <script src=/resources/testharness.js></script> 4 <script src=/resources/testharnessreport.js></script> 5 <script> 6 promise_test(async t => { 7 try { 8 await document.browsingTopics(); 9 } catch (e) { 10 assert_equals(e.name, 'TypeError'); 11 assert_equals(e.message, 'document.browsingTopics is not a function'); 12 return; 13 } 14 assert_unreached("did not reject"); 15 }, 'test document.browsingTopics() in insecure context'); 16 </script> 17 </body>