gecko-dev/testing/web-platform/tests/js-self-profiling/idlharness.any.js
Stephen McGruer 9825984b34 Bug 1612154 [wpt PR 21495] - Add interfaces/js-self-profiling.idl and test, a=testonly
Automatic update from web-platform-tests
Add interfaces/js-self-profiling.idl and test (#21495)

Closes https://github.com/web-platform-tests/wpt/pull/21298
--

wpt-commits: 719a6368cc7a739949e4ecf464d70001d53f8b1d
wpt-pr: 21495
2020-02-14 19:08:37 +00:00

19 lines
371 B
JavaScript

// META: script=/resources/WebIDLParser.js
// META: script=/resources/idlharness.js
'use strict';
idl_test(
['js-self-profiling'],
['hr-time', 'dom'],
async idl_array => {
idl_array.add_objects({
Performance: ['performance'],
Profiler: ['profiler'],
});
self.profiler = await performance.profile({
sampleInterval: 1,
});
}
);