summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/browsing-topics/iframe-topics-attribute.tentative.https.html
blob: b90f967146ce49235d216ef7a18056b1b282d263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<body>
  <script src=/resources/testharness.js></script>
  <script src=/resources/testharnessreport.js></script>
  <script src=/browsing-topics/resources/navigation-header-util.sub.js></script>
  <script>
    async_test(t => {
      test_topics_iframe_navigation_header(
          t, /*has_browsing_topics_attribute=*/false, /*is_same_origin=*/false,
          expect_topics_header_unavailable);
    }, 'test <iframe src=[url]></iframe>');

    async_test(t => {
      test_topics_iframe_navigation_header(
          t, /*has_browsing_topics_attribute=*/true, /*is_same_origin=*/false,
          expect_topics_header_available);
    }, 'test <iframe browsingtopics src=[url]></iframe>');
  </script>
</body>