mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
// META: script=/common/get-host-info.sub.js
|
|
// META: script=./resources/common.js
|
|
// META: timeout=long
|
|
'use strict';
|
|
|
|
assert_true(self.crossOriginIsolated);
|
|
promise_test(async testCase => {
|
|
const result = await performance.measureUserAgentSpecificMemory();
|
|
checkMeasureMemory(result, [
|
|
{
|
|
url: window.location.href,
|
|
scope: 'Window',
|
|
container: null,
|
|
},
|
|
]);
|
|
}, 'Well-formed result of performance.measureUserAgentSpecificMemory.');
|