summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/browsing-topics/document-api.tentative.https.html
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/browsing-topics/document-api.tentative.https.html')
-rw-r--r--testing/web-platform/tests/browsing-topics/document-api.tentative.https.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/browsing-topics/document-api.tentative.https.html b/testing/web-platform/tests/browsing-topics/document-api.tentative.https.html
new file mode 100644
index 0000000000..d1d515ccba
--- /dev/null
+++ b/testing/web-platform/tests/browsing-topics/document-api.tentative.https.html
@@ -0,0 +1,15 @@
+<!doctype html>
+<body>
+ <script src=/resources/testharness.js></script>
+ <script src=/resources/testharnessreport.js></script>
+ <script>
+ promise_test(async t => {
+ let topics = await document.browsingTopics();
+
+ // An empty result indicates that the request was eligible for topics.
+ // Currently, the web-platform-tests framework does not support actually
+ // handling the topics request.
+ assert_equals(topics.length, 0);
+ }, 'test document.browsingTopics()');
+ </script>
+</body>