Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit a3699cd

Browse files
committed
Add Performance Timing and Performance Observer
1 parent 7cdf5db commit a3699cd

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

scripts/9/data.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2241,6 +2241,24 @@ var tests = [
22412241
[ 'w3c', 'https://w3c.github.io/preload/' ]
22422242
]
22432243
},
2244+
2245+
'<strong>Measurement</strong>',
2246+
2247+
{
2248+
id: 'performance-timing',
2249+
name: 'Performance Timing',
2250+
value: 1,
2251+
urls: [
2252+
[ 'w3c', 'https://w3c.github.io/perf-timing-primer/' ]
2253+
]
2254+
}, {
2255+
id: 'performance-observer',
2256+
name: 'Performance Observer',
2257+
value: 1,
2258+
urls: [
2259+
[ 'w3c', 'https://www.w3.org/TR/performance-timeline-2/' ]
2260+
]
2261+
},
22442262
]
22452263
}, {
22462264
id: 'security',

scripts/9/engine.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2282,6 +2282,26 @@ Test9 = (function () {
22822282
},
22832283

22842284

2285+
/* performance timing */
2286+
2287+
function (results) {
2288+
results.addItem({
2289+
key: 'resource.performance-timing',
2290+
passed: 'performance' in window
2291+
});
2292+
},
2293+
2294+
2295+
/* performance observer */
2296+
2297+
function (results) {
2298+
results.addItem({
2299+
key: 'resource.performance-observer',
2300+
passed: 'PerformanceObserver' in window
2301+
});
2302+
},
2303+
2304+
22852305
/* webworker */
22862306

22872307
function (results) {

0 commit comments

Comments
 (0)