Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /client-hints/critical-ch/critical-ch.navigation-timing.no-restart.https.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<body>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
var navigationTiming = window.performance.getEntriesByType('navigation')[0];
assert_not_equals(navigationTiming, undefined);
assert_equals(navigationTiming.criticalCHRestart, 0, "This should be 0 as there was no restart.");
}, "Critical-CH no-restart navigation timing test");
</script>
</body>
</html>