Skip to content
File

Blob: src/wpt/performance-timeline-test.ts

typescript155 lines
1// Copyright (c) 2017-2022 Cloudflare, Inc.
2// Licensed under the Apache 2.0 license found in the LICENSE file or at:
3// https://opensource.org/licenses/Apache-2.0
4 
5import { type TestRunnerConfig } from 'harness/harness';
6 
7export default {
8 'buffered-flag-after-timeout.any.js': {
9 comment: 'This is not yet implemented',
10 disabledTests: [
11 'PerformanceObserver with buffered flag sees entry after timeout',
12 ],
13 },
14 'buffered-flag-observer.any.js': {
15 comment: 'This is not yet implemented',
16 disabledTests: [
17 'PerformanceObserver with buffered flag should see past and future entries.',
18 ],
19 },
20 'case-sensitivity.any.js': {
21 comment: 'This is not yet implemented',
22 disabledTests: [
23 'getEntriesByType values are case sensitive',
24 'getEntriesByName values are case sensitive',
25 'observe() and case sensitivity for types/entryTypes and buffered.',
26 ],
27 },
28 'droppedentriescount.any.js': {
29 comment: 'This is not yet implemented',
30 disabledTests: [
31 'Dropped entries count is 0 when there are no dropped entries of relevant type.',
32 'Dropped entries correctly counted with multiple types.',
33 'Dropped entries counted even if observer was not registered at the time.',
34 'Dropped entries only surfaced on the first callback.',
35 'Dropped entries surfaced after an observe() call!',
36 ],
37 },
38 'idlharness.any.js': {
39 comment: 'idl_test setup hangs the Worker runtime',
40 disabledTests: ['idl_test setup'],
41 },
42 'multiple-buffered-flag-observers.any.js': {
43 comment: 'This is not yet implemented',
44 omittedTests: [
45 'Multiple PerformanceObservers with buffered flag see all entries',
46 ],
47 },
48 'navigation-id.helper.js': {},
49 'not-restored-reasons/abort-block-bfcache.window.js': {
50 comment: 'This is not yet implemented',
51 omittedTests: ['aborting a parser should block bfcache.'],
52 },
53 'not-restored-reasons/test-helper.js': {
54 comment:
55 'Test file /html/browsers/browsing-the-web/back-forward-cache/resources/rc-helper.js not found. Update wpt_test.bzl to handle this case.',
56 omittedTests: true,
57 },
58 'observer-buffered-false.any.js': {
59 comment: 'This is not yet implemented',
60 disabledTests: [
61 'PerformanceObserver without buffered flag set to false cannot see past entries.',
62 ],
63 },
64 'performanceentry-tojson.any.js': {
65 comment: 'This is not yet implemented',
66 disabledTests: ['Test toJSON() in PerformanceEntry'],
67 },
68 'performanceobservers.js': {},
69 'po-callback-mutate.any.js': {
70 comment: 'This is not yet implemented',
71 disabledTests: [
72 'PerformanceObserver modifications inside callback should update filtering and not clear buffer',
73 ],
74 },
75 'po-disconnect-removes-observed-types.any.js': {
76 comment: 'This is not yet implemented',
77 disabledTests: [
78 'Types observed are forgotten when disconnect() is called.',
79 ],
80 },
81 'po-disconnect.any.js': {
82 comment: 'This is not yet implemented',
83 disabledTests: [
84 'disconnected callbacks must not be invoked',
85 'disconnecting an unconnected observer is a no-op',
86 'An observer disconnected after a mark must not have its callback invoked',
87 ],
88 },
89 'po-entries-sort.any.js': {
90 comment: 'This is not yet implemented',
91 disabledTests: [
92 'getEntries, getEntriesByType, getEntriesByName sort order',
93 ],
94 },
95 'po-getentries.any.js': {
96 comment: 'This is not yet implemented',
97 disabledTests: ['getEntries, getEntriesByType and getEntriesByName work'],
98 },
99 'po-mark-measure.any.js': {
100 comment: 'This is not yet implemented',
101 disabledTests: [
102 'entries are observable',
103 'mark entries are observable',
104 'measure entries are observable',
105 ],
106 },
107 'po-observe-repeated-type.any.js': {
108 comment: 'This is not yet implemented',
109 disabledTests: [
110 "Two calls of observe() with the same 'type' cause override.",
111 ],
112 },
113 'po-observe-type.any.js': {
114 comment: 'This is not yet implemented',
115 disabledTests: [
116 "Calling observe() without 'type' or 'entryTypes' throws a TypeError",
117 'Calling observe() with entryTypes and then type should throw an InvalidModificationError',
118 'Calling observe() with type and then entryTypes should throw an InvalidModificationError',
119 'Calling observe() with type and entryTypes should throw a TypeError',
120 'Passing in unknown values to type does throw an exception.',
121 'observe() with different type values stacks.',
122 ],
123 },
124 'po-observe.any.js': {
125 comment: 'This is not yet implemented',
126 disabledTests: [
127 'entryTypes must be a sequence or throw a TypeError',
128 'Empty sequence entryTypes does not throw an exception.',
129 'Unknown entryTypes do not throw an exception.',
130 'Filter unsupported entryType entryType names within the entryTypes sequence',
131 'Check observer callback parameter and this values',
132 'replace observer if already present',
133 ],
134 },
135 'po-takeRecords.any.js': {
136 comment: 'This is not yet implemented',
137 disabledTests: ["Test PerformanceObserver's takeRecords()"],
138 },
139 'supportedEntryTypes.any.js': {
140 comment:
141 'Test expect non-empty array that is cached. Our implementation does not cache it yet.',
142 disabledTests: [
143 'supportedEntryTypes exists and returns entries in alphabetical order',
144 'supportedEntryTypes caches result',
145 ],
146 },
147 'webtiming-resolution.any.js': {
148 comment: 'We intentionally fail on these',
149 disabledTests: [
150 'Verifies the resolution of performance.now() is at least 5 microseconds.',
151 'Verifies the resolution of entry.startTime is at least 5 microseconds.',
152 ],
153 },
154} satisfies TestRunnerConfig;