document-api.tentative.https.html (518B)
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 let topics = await document.browsingTopics(); 8 9 // An empty result indicates that the request was eligible for topics. 10 // Currently, the web-platform-tests framework does not support actually 11 // handling the topics request. 12 assert_equals(topics.length, 0); 13 }, 'test document.browsingTopics()'); 14 </script> 15 </body>