blob: 32c9cf77f90ee9c0710da5f623e8b175aaae7f3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<!DOCTYPE html>
<html>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script src=/fetch/metadata/resources/helper.js></script>
<script>
test(t => {
let expected = {
"mode": "navigate",
"site": "none",
"dest": "document"
};
let actual = {
"mode": "{{headers[sec-fetch-mode]}}",
"site": "{{headers[sec-fetch-site]}}",
// Skipping `Sec-Fetch-User`, as the test harness isn't consistent here.
"dest": "{{headers[sec-fetch-dest]}}"
};
assert_header_equals(actual, expected);
}, "This page's top-level navigation.");
</script>
|