mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
18 lines
469 B
JavaScript
18 lines
469 B
JavaScript
// META: script=./resources/checker.js
|
|
// META: timeout=long
|
|
// META: global=serviceworker
|
|
'use strict';
|
|
|
|
promise_test(async testCase => {
|
|
assert_true(self.crossOriginIsolated);
|
|
|
|
const result = await performance.measureUserAgentSpecificMemory();
|
|
|
|
checkMeasureMemory(result, [
|
|
{
|
|
url: self.location.href,
|
|
scope: 'ServiceWorkerGlobalScope',
|
|
container: null,
|
|
},
|
|
]);
|
|
}, 'Well-formed result of performance.measureUserAgentSpecificMemory.');
|