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:
- /performance-timeline/tentative/with-filter-options-originA.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<head>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
</head>
<body>
<script>
promise_test(async () => {
performance.clearResourceTimings();
performance.mark('entry-name');
const navigationEntries = performance.getEntries({ entryType: 'navigation' });
const markedEntries = performance.getEntries(
{ name: 'entry-name', entryType: 'mark' });
assert_equals(navigationEntries.length, 1, 'navigationEntries should be 1.');
assert_equals(markedEntries.length, 1, 'markedEntries should be 1.');
}, 'GetEntries with filter options.');
</script>
</body>