blob: c0251114dd6ae5760667422a237e04ea03162887 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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.');
|