summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/measure-memory/shared-worker.https.any.js
blob: 4e359ad3fe6cbe528d6377a273afa0df0bbaeec5 (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: 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.');