summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/baselinecoverage/plain
diff options
context:
space:
mode:
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>