summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/baselinecoverage/plain
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 00:47:55 +0000
commit26a029d407be480d791972afb5975cf62c9360a6 (patch)
treef435a8308119effd964b339f76abb83a57c29483 /testing/mochitest/baselinecoverage/plain
parentInitial commit. (diff)
downloadfirefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz
firefox-26a029d407be480d791972afb5975cf62c9360a6.zip
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/mochitest/baselinecoverage/plain')
-rw-r--r--testing/mochitest/baselinecoverage/plain/mochitest.toml6
-rw-r--r--testing/mochitest/baselinecoverage/plain/test_baselinecoverage.html22
2 files changed, 28 insertions, 0 deletions
diff --git a/testing/mochitest/baselinecoverage/plain/mochitest.toml b/testing/mochitest/baselinecoverage/plain/mochitest.toml
new file mode 100644
index 0000000000..0fa3cf2cca
--- /dev/null
+++ b/testing/mochitest/baselinecoverage/plain/mochitest.toml
@@ -0,0 +1,6 @@
+[DEFAULT]
+
+["test_baselinecoverage.html"]
+run-if = [
+ "ccov && verify",
+]
diff --git a/testing/mochitest/baselinecoverage/plain/test_baselinecoverage.html b/testing/mochitest/baselinecoverage/plain/test_baselinecoverage.html
new file mode 100644
index 0000000000..0fdc912808
--- /dev/null
+++ b/testing/mochitest/baselinecoverage/plain/test_baselinecoverage.html
@@ -0,0 +1,22 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <title>Baseline Coverage Collection</title>
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
+</head>
+<body>
+<script type="application/javascript">
+ SimpleTest.waitForExplicitFinish();
+ SimpleTest.requestFlakyTimeout("Baseline coverage stabilization delay.");
+
+ async function delayBaseline() {
+ SimpleTest.ok(true, "Collecting baseline coverage for HTML (.html) file types.");
+ await new Promise((c) => setTimeout(c, 30 * 1000));
+ SimpleTest.finish();
+ }
+
+ delayBaseline();
+</script>
+</body>
+</html>