summaryrefslogtreecommitdiffstats
path: root/layout/reftests/frameset
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /layout/reftests/frameset
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/frameset')
-rw-r--r--layout/reftests/frameset/frameset-add-col-ref.html10
-rw-r--r--layout/reftests/frameset/frameset-add-col.html22
-rw-r--r--layout/reftests/frameset/frameset-add-row-ref.html10
-rw-r--r--layout/reftests/frameset/frameset-add-row.html22
-rw-r--r--layout/reftests/frameset/frameset-remove-col-ref.html10
-rw-r--r--layout/reftests/frameset/frameset-remove-col.html20
-rw-r--r--layout/reftests/frameset/frameset-remove-row-ref.html10
-rw-r--r--layout/reftests/frameset/frameset-remove-row.html20
-rw-r--r--layout/reftests/frameset/reftest.list4
9 files changed, 128 insertions, 0 deletions
diff --git a/layout/reftests/frameset/frameset-add-col-ref.html b/layout/reftests/frameset/frameset-add-col-ref.html
new file mode 100644
index 0000000000..6cd1b4bf9e
--- /dev/null
+++ b/layout/reftests/frameset/frameset-add-col-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ </head>
+ <frameset id="frameset" cols="*,*">
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-add-col.html b/layout/reftests/frameset/frameset-add-col.html
new file mode 100644
index 0000000000..8fe32e1de7
--- /dev/null
+++ b/layout/reftests/frameset/frameset-add-col.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <meta charset=utf-8>
+ <script type="text/javascript">
+ window.addEventListener("MozReftestInvalidate", () => {
+ let frameset = document.getElementById("frameset");
+ let newFrame = document.createElement("frame");
+ frameset.appendChild(newFrame);
+ frameset.cols = "*";
+
+ newFrame = document.createElement("frame");
+ frameset.appendChild(newFrame);
+ frameset.cols = frameset.cols + ",*";
+
+ document.documentElement.removeAttribute("class");
+ });
+ </script>
+ </head>
+ <frameset id="frameset" cols="">
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-add-row-ref.html b/layout/reftests/frameset/frameset-add-row-ref.html
new file mode 100644
index 0000000000..4da1204655
--- /dev/null
+++ b/layout/reftests/frameset/frameset-add-row-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ </head>
+ <frameset id="frameset" rows="*,*">
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-add-row.html b/layout/reftests/frameset/frameset-add-row.html
new file mode 100644
index 0000000000..31fbfeed55
--- /dev/null
+++ b/layout/reftests/frameset/frameset-add-row.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <meta charset=utf-8>
+ <script type="text/javascript">
+ window.addEventListener("MozReftestInvalidate", () => {
+ let frameset = document.getElementById("frameset");
+ let newFrame = document.createElement("frame");
+ frameset.appendChild(newFrame);
+ frameset.rows = "*";
+
+ newFrame = document.createElement("frame");
+ frameset.appendChild(newFrame);
+ frameset.rows = frameset.rows + ",*";
+
+ document.documentElement.removeAttribute("class");
+ });
+ </script>
+ </head>
+ <frameset id="frameset" rows="">
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-remove-col-ref.html b/layout/reftests/frameset/frameset-remove-col-ref.html
new file mode 100644
index 0000000000..6cd1b4bf9e
--- /dev/null
+++ b/layout/reftests/frameset/frameset-remove-col-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ </head>
+ <frameset id="frameset" cols="*,*">
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-remove-col.html b/layout/reftests/frameset/frameset-remove-col.html
new file mode 100644
index 0000000000..1e266d2915
--- /dev/null
+++ b/layout/reftests/frameset/frameset-remove-col.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <meta charset=utf-8>
+ <script type="text/javascript">
+ window.addEventListener("MozReftestInvalidate", () => {
+ let frameset = document.getElementById("frameset");
+ frameset.removeChild(frameset.lastChild);
+ frameset.cols = frameset.cols.replace(/,[^,]*$/, "");
+
+ document.documentElement.removeAttribute("class");
+ });
+ </script>
+ </head>
+ <frameset id="frameset" cols="*,*,*">
+ <frame />
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-remove-row-ref.html b/layout/reftests/frameset/frameset-remove-row-ref.html
new file mode 100644
index 0000000000..4da1204655
--- /dev/null
+++ b/layout/reftests/frameset/frameset-remove-row-ref.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset=utf-8>
+ </head>
+ <frameset id="frameset" rows="*,*">
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/frameset-remove-row.html b/layout/reftests/frameset/frameset-remove-row.html
new file mode 100644
index 0000000000..7f55ac9493
--- /dev/null
+++ b/layout/reftests/frameset/frameset-remove-row.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html class="reftest-wait">
+ <head>
+ <meta charset=utf-8>
+ <script type="text/javascript">
+ window.addEventListener("MozReftestInvalidate", () => {
+ let frameset = document.getElementById("frameset");
+ frameset.removeChild(frameset.lastChild);
+ frameset.rows = frameset.rows.replace(/,[^,]*$/, "");
+
+ document.documentElement.removeAttribute("class");
+ });
+ </script>
+ </head>
+ <frameset id="frameset" rows="*,*,*">
+ <frame />
+ <frame />
+ <frame />
+ </frameset>
+</html>
diff --git a/layout/reftests/frameset/reftest.list b/layout/reftests/frameset/reftest.list
new file mode 100644
index 0000000000..0d5ff10b16
--- /dev/null
+++ b/layout/reftests/frameset/reftest.list
@@ -0,0 +1,4 @@
+skip-if(ThreadSanitizer) == frameset-add-row.html frameset-add-row-ref.html
+== frameset-remove-row.html frameset-remove-row-ref.html
+== frameset-add-col.html frameset-add-col-ref.html
+== frameset-remove-col.html frameset-remove-col-ref.html