fune/testing/web-platform/tests/js-self-profiling/idlharness.https.html
Andrew Comminos a5fb1ea7c5 Bug 1720066 [wpt PR 29636] - [cpu-profiler] Require specification of maxBufferSize, a=testonly
Automatic update from web-platform-tests
[cpu-profiler] Require specification of maxBufferSize

Make the Blink implementation consistent with the spec, requiring
maxBufferSize to be specified for profiler instantiation.

Bug: 956688
Change-Id: Icbb85a4679b91bf47e6a173c9f048bb004c66cd0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3019395
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Reviewed-by: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#900576}

--

wpt-commits: 2abfab01e0d3189a6fa8b56d24c3934a83a6d1ba
wpt-pr: 29636
2021-07-19 15:59:28 +00:00

25 lines
690 B
HTML

<!doctype html>
<meta charset=utf-8>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<body>
<script>
'use strict';
idl_test(
['js-self-profiling'],
['hr-time', 'dom'],
async idl_array => {
idl_array.add_objects({
Profiler: ['profiler'],
});
self.profiler = new Profiler({
sampleInterval: 1,
maxBufferSize: 1,
});
}
);
</script>