summaryrefslogtreecommitdiffstats
path: root/testing/mochitest/static
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 09:22:09 +0000
commit43a97878ce14b72f0981164f87f2e35e14151312 (patch)
tree620249daf56c0258faa40cbdcf9cfba06de2a846 /testing/mochitest/static
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 110.0.1.upstream/110.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--testing/mochitest/static/browser.template.txt8
-rw-r--r--testing/mochitest/static/chromehtml.template.txt19
-rw-r--r--testing/mochitest/static/chromexhtml.template.txt19
-rw-r--r--testing/mochitest/static/chromexul.template.txt15
-rw-r--r--testing/mochitest/static/harness.css126
-rw-r--r--testing/mochitest/static/plainhtml.template.txt17
-rw-r--r--testing/mochitest/static/plainxhtml.template.txt17
-rw-r--r--testing/mochitest/static/plainxul.template.txt12
8 files changed, 233 insertions, 0 deletions
diff --git a/testing/mochitest/static/browser.template.txt b/testing/mochitest/static/browser.template.txt
new file mode 100644
index 0000000000..fe4f2080b2
--- /dev/null
+++ b/testing/mochitest/static/browser.template.txt
@@ -0,0 +1,8 @@
+/* Any copyright is dedicated to the Public Domain.
+ http://creativecommons.org/publicdomain/zero/1.0/ */
+
+"use strict";
+
+add_task(async function test_TODO() {
+ ok(true, "TODO: implement the test");
+});
diff --git a/testing/mochitest/static/chromehtml.template.txt b/testing/mochitest/static/chromehtml.template.txt
new file mode 100644
index 0000000000..2ad7a6df52
--- /dev/null
+++ b/testing/mochitest/static/chromehtml.template.txt
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title><!-- TODO: insert title here --></title>
+ <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
+ <script>
+ add_task(async function test_TODO() {
+ ok(true, "TODO: implement the test");
+ });
+ </script>
+</head>
+<body>
+<p id="display"></p>
+<div id="content" style="display: none"></div>
+<pre id="test"></pre>
+</body>
+</html>
diff --git a/testing/mochitest/static/chromexhtml.template.txt b/testing/mochitest/static/chromexhtml.template.txt
new file mode 100644
index 0000000000..9cd40ef308
--- /dev/null
+++ b/testing/mochitest/static/chromexhtml.template.txt
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta charset="utf-8" />
+ <title><!-- TODO: insert title here --></title>
+ <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" href="chrome://mochikit/content/tests/SimpleTest/test.css"/>
+ <script><![CDATA[
+ add_task(async function test_TODO() {
+ ok(true, "TODO: implement the test");
+ });
+ ]]></script>
+</head>
+<body>
+<p id="display"></p>
+<div id="content" style="display: none"></div>
+<pre id="test"></pre>
+</body>
+</html>
diff --git a/testing/mochitest/static/chromexul.template.txt b/testing/mochitest/static/chromexul.template.txt
new file mode 100644
index 0000000000..6dbb611054
--- /dev/null
+++ b/testing/mochitest/static/chromexul.template.txt
@@ -0,0 +1,15 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin"?>
+<?xml-stylesheet href="chrome://mochikit/content/tests/SimpleTest/test.css"?>
+<window title="TODO: Insert title here"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js" />
+ <script><![CDATA[
+ add_task(async function test_TODO() {
+ ok(true, "TODO: implement the test");
+ });
+ ]]></script>
+
+ <body xmlns="http://www.w3.org/1999/xhtml">
+ </body>
+</window>
diff --git a/testing/mochitest/static/harness.css b/testing/mochitest/static/harness.css
new file mode 100644
index 0000000000..544a7dc954
--- /dev/null
+++ b/testing/mochitest/static/harness.css
@@ -0,0 +1,126 @@
+body {
+ margin: 0;
+ padding: 0;
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 11px;
+ background-color: #fff;
+}
+
+#xulharness {
+ position: fixed;
+ top: 30px;
+ bottom: 0;
+ right: 0px;
+ left: 0px;
+ overflow:auto;
+}
+
+th, td {
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 11px;
+ padding-left: .2em;
+ padding-right: .2em;
+ text-align: left;
+ height: 15px;
+ margin: 0;
+}
+
+li, li.test, li.dir {
+ padding: 0;
+ line-height: 15px;
+}
+
+ul {
+ list-style: none;
+ margin: 0;
+ margin-left: 1em;
+ padding: 0;
+ border: none;
+}
+
+ul.top {
+ padding: 0;
+ padding-left: 1em;
+}
+
+table#test-table {
+ background: #f6f6f6;
+ margin-left: 1em;
+ padding: 0;
+}
+
+div.container {
+ margin: 1em;
+}
+
+a#runtests, a {
+ color: #3333cc;
+}
+
+li.non-test a {
+ color: #999999;
+}
+
+small a {
+ color: #000;
+}
+
+.clear { clear: both;}
+.invisible { display: none;}
+
+div.status {
+ min-height: 170px;
+ width: 100%;
+ border: 1px solid #666;
+}
+div.frameholder {
+ min-height: 170px;
+ min-width: 500px;
+ background-color: #ffffff;
+}
+
+div#current-test {
+ margin-top: 1em;
+ margin-bottom: 1em;
+}
+
+#indicator {
+ color: white;
+ background-color: green;
+ padding: .5em;
+ margin: 0;
+}
+
+#pass, #fail {
+ margin: 0;
+ padding: .5em;
+}
+
+#testframe {
+ width: 500px;
+ height: 300px;
+}
+
+
+body[singletest=true] table,
+body[singletest=true] h2,
+body[singletest=true] p,
+body[singletest=true] br,
+body[singletest=true] .clear,
+body[singletest=true] .toggle,
+body[singletest=true] #current-test,
+body[singletest=true] .status {
+ display: none;
+}
+
+
+body[singletest=true],
+body[singletest=true] .container,
+body[singletest=true] .frameholder,
+body[singletest=true] #testframe {
+ display: flex;
+ flex: 1 1 auto;
+ height: 100%;
+ box-sizing: border-box;
+ margin: 0;
+}
diff --git a/testing/mochitest/static/plainhtml.template.txt b/testing/mochitest/static/plainhtml.template.txt
new file mode 100644
index 0000000000..9268645fa1
--- /dev/null
+++ b/testing/mochitest/static/plainhtml.template.txt
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title><!-- TODO: insert title here --></title>
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
+ <script>
+ ok(true, "TODO: implement the test");
+ </script>
+</head>
+<body>
+<p id="display"></p>
+<div id="content" style="display: none"></div>
+<pre id="test"></pre>
+</body>
+</html>
diff --git a/testing/mochitest/static/plainxhtml.template.txt b/testing/mochitest/static/plainxhtml.template.txt
new file mode 100644
index 0000000000..f04bdd5531
--- /dev/null
+++ b/testing/mochitest/static/plainxhtml.template.txt
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+ <meta charset="utf-8" />
+ <title><!-- TODO: insert title here --></title>
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
+ <script><![CDATA[
+ ok(true, "TODO: implement the test");
+ ]]></script>
+</head>
+<body>
+<p id="display"></p>
+<div id="content" style="display: none"></div>
+<pre id="test"></pre>
+</body>
+</html>
diff --git a/testing/mochitest/static/plainxul.template.txt b/testing/mochitest/static/plainxul.template.txt
new file mode 100644
index 0000000000..c7fc19d46b
--- /dev/null
+++ b/testing/mochitest/static/plainxul.template.txt
@@ -0,0 +1,12 @@
+<?xml version="1.0"?>
+<?xml-stylesheet href="chrome://global/skin"?>
+<?xml-stylesheet href="/tests/SimpleTest/test.css"?>
+<window title="TODO: Insert title here"
+ xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <script><![CDATA[
+ ok(true, "TODO: implement the test");
+ ]]></script>
+ <body xmlns="http://www.w3.org/1999/xhtml">
+ </body>
+</window>