aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js')
-rw-r--r--tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js b/tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js
new file mode 100644
index 00000000000..fd58e9314b0
--- /dev/null
+++ b/tests/wpt/web-platform-tests/measure-memory/main-frame.tentative.https.window.js
@@ -0,0 +1,16 @@
+// 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.measureMemory();
+ checkMeasureMemory(result, [
+ {
+ url: window.location.href,
+ scope: 'Window',
+ container: null,
+ },
+ ]);
+}, 'Well-formed result of performance.measureMemory.');