summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/fenced-frame/window-navigation-204.https.html
blob: 67220603301af9c3eb4ad26f81e3dadafc2deb16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!DOCTYPE html>
<title>Test window.navigation.204</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/utils.js"></script>
<script src="/common/utils.js"></script>

<body>

<script>
promise_test(async () => {
  const window_data_key = token();

  attachFencedFrame(generateURL("resources/window-navigation-204-inner.html",
      [window_data_key]));

  const actual_result  = await nextValueFromServer(window_data_key);
  assert_equals(actual_result, "still in page",
                "The fenced frame has the right value for `204 response` upon " +
                "subsequent navigation resulting in HTTP 204");
}, "window.navigation.204");
</script>

</body>