Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /measure-memory/shared-worker.https.any.sharedworker.html - WPT Dashboard Interop Dashboard
// META: script=./resources/checker.js
// META: global=sharedworker
'use strict';
promise_test(async testCase => {
assert_true(self.crossOriginIsolated);
const result = await performance.measureUserAgentSpecificMemory();
checkMeasureMemory(result, [
{
url: self.location.href,
scope: 'SharedWorkerGlobalScope',
container: null,
},
]);
}, 'Well-formed result of performance.measureUserAgentSpecificMemory.');