summaryrefslogtreecommitdiffstats
path: root/dom/tests/mochitest/ajax/offline/namespace1
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 14:29:10 +0000
commit2aa4a82499d4becd2284cdb482213d541b8804dd (patch)
treeb80bf8bf13c3766139fbacc530efd0dd9d54394c /dom/tests/mochitest/ajax/offline/namespace1
parentInitial commit. (diff)
downloadfirefox-upstream.tar.xz
firefox-upstream.zip
Adding upstream version 86.0.1.upstream/86.0.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/tests/mochitest/ajax/offline/namespace1')
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/opp.html9
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs6
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/script.js4
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html9
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js4
-rw-r--r--dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js4
6 files changed, 36 insertions, 0 deletions
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/opp.html b/dom/tests/mochitest/ajax/offline/namespace1/opp.html
new file mode 100644
index 0000000000..daf4abf213
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/opp.html
@@ -0,0 +1,9 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Falback namespace page 1</title>
+</head>
+
+<body>
+Page in fall back namespace No. 1
+</body>
+</html>
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs b/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs
new file mode 100644
index 0000000000..a64e00e044
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/redirectToDifferentOrigin.sjs
@@ -0,0 +1,6 @@
+function handleRequest(request, response)
+{
+ response.setStatusLine(request.httpVersion, 307, "Moved temporarly");
+ response.setHeader("Location", "https://example.org/tests/dom/tests/mochitest/ajax/offline/fallback2.html");
+ response.setHeader("Content-Type", "text/html");
+}
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/script.js b/dom/tests/mochitest/ajax/offline/namespace1/script.js
new file mode 100644
index 0000000000..61ffb174f2
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/script.js
@@ -0,0 +1,4 @@
+function scriptNo0Function()
+{
+ return true;
+}
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html b/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html
new file mode 100644
index 0000000000..2d0996553d
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/sub/opp.html
@@ -0,0 +1,9 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<title>Falback namespace page 2</title>
+</head>
+
+<body>
+Page in fall back namespace No. 2
+</body>
+</html>
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js b/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js
new file mode 100644
index 0000000000..30829316b2
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/sub/script1.js
@@ -0,0 +1,4 @@
+function scriptNo1Function()
+{
+ return true;
+}
diff --git a/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js b/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js
new file mode 100644
index 0000000000..586d39a19c
--- /dev/null
+++ b/dom/tests/mochitest/ajax/offline/namespace1/sub2/script2.js
@@ -0,0 +1,4 @@
+function scriptNo2Function()
+{
+ return true;
+}