summaryrefslogtreecommitdiffstats
path: root/toolkit/components/aboutperformance/tests/browser/tab_use_memory.html
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/components/aboutperformance/tests/browser/tab_use_memory.html')
-rw-r--r--toolkit/components/aboutperformance/tests/browser/tab_use_memory.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/toolkit/components/aboutperformance/tests/browser/tab_use_memory.html b/toolkit/components/aboutperformance/tests/browser/tab_use_memory.html
new file mode 100644
index 0000000000..b72abae3f7
--- /dev/null
+++ b/toolkit/components/aboutperformance/tests/browser/tab_use_memory.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="UTF-8">
+ <title>
+ Main frame for test browser_aboutperformance.js
+ </title>
+</head>
+<body>
+<p>
+ Mostly empty document, the script creates a big array.
+</p>
+</body>
+<script>
+ var big_array = [];
+ for (let i = 0; i < 4 * 1024 * 1024; i++) {
+ big_array[i] = i*i;
+ }
+
+ window.waitForTestReady = async () => {
+ // big_array is created so we are ready.
+ };
+</script>
+</html>