summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/browsing-topics/iframe-topics-attribute.tentative.https.html
blob: 7b3b6c70450dfb83cb07b6c36443de63d474da2b (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/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>