blob: 6c6643df75cf09e2155123e32a7237a155eb8a2a (
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
25
26
|
<!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>
|