summaryrefslogtreecommitdiffstats
path: root/layout/reftests/marquee
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:47:29 +0000
commit0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d (patch)
treea31f07c9bcca9d56ce61e9a1ffd30ef350d513aa /layout/reftests/marquee
parentInitial commit. (diff)
downloadfirefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.tar.xz
firefox-esr-0ebf5bdf043a27fd3dfb7f92e0cb63d88954c44d.zip
Adding upstream version 115.8.0esr.upstream/115.8.0esr
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/reftests/marquee')
-rw-r--r--layout/reftests/marquee/1160342-1.html10
-rw-r--r--layout/reftests/marquee/1160342-2.html10
-rw-r--r--layout/reftests/marquee/1160342-ref.html10
-rw-r--r--layout/reftests/marquee/166591-dynamic-1-ref.html6
-rw-r--r--layout/reftests/marquee/166591-dynamic-1.html11
-rw-r--r--layout/reftests/marquee/336736-1-ref.html5
-rw-r--r--layout/reftests/marquee/336736-1a.html13
-rw-r--r--layout/reftests/marquee/336736-1b.html13
-rw-r--r--layout/reftests/marquee/406073-1-ref.html11
-rw-r--r--layout/reftests/marquee/406073-1.html23
-rw-r--r--layout/reftests/marquee/407016-2-ref.html5
-rw-r--r--layout/reftests/marquee/407016-2.html7
-rw-r--r--layout/reftests/marquee/413027-4-ref.html10
-rw-r--r--layout/reftests/marquee/413027-4.html15
-rw-r--r--layout/reftests/marquee/425247-1-ref.html9
-rw-r--r--layout/reftests/marquee/425247-1.html9
-rw-r--r--layout/reftests/marquee/425247-2-ref.html9
-rw-r--r--layout/reftests/marquee/425247-2.html9
-rw-r--r--layout/reftests/marquee/429849-1-ref.html10
-rw-r--r--layout/reftests/marquee/429849-1.html10
-rw-r--r--layout/reftests/marquee/reftest.list11
21 files changed, 216 insertions, 0 deletions
diff --git a/layout/reftests/marquee/1160342-1.html b/layout/reftests/marquee/1160342-1.html
new file mode 100644
index 0000000000..85e7215fbb
--- /dev/null
+++ b/layout/reftests/marquee/1160342-1.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Bug 1160342 - Implement marquee using mutation observers</title>
+</head>
+<body onload="document.getElementById('a').setAttribute('behavior', 'alternate')">
+<marquee id="a" scrollamount=0 direction=right>
+This text should be visible
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/1160342-2.html b/layout/reftests/marquee/1160342-2.html
new file mode 100644
index 0000000000..99b288568b
--- /dev/null
+++ b/layout/reftests/marquee/1160342-2.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Bug 1160342 - Implement marquee using mutation observers</title>
+</head>
+<body onload="document.getElementById('a').setAttribute('direction', 'right')">
+<marquee id="a" behavior=alternate scrollamount=0>
+This text should be visible
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/1160342-ref.html b/layout/reftests/marquee/1160342-ref.html
new file mode 100644
index 0000000000..d56c90642a
--- /dev/null
+++ b/layout/reftests/marquee/1160342-ref.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Bug 1160342 - Implement marquee using mutation observers</title>
+</head>
+<body>
+<marquee id="a" behavior=alternate scrollamount=0 direction=right>
+This text should be visible
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/166591-dynamic-1-ref.html b/layout/reftests/marquee/166591-dynamic-1-ref.html
new file mode 100644
index 0000000000..a9bed7d5fb
--- /dev/null
+++ b/layout/reftests/marquee/166591-dynamic-1-ref.html
@@ -0,0 +1,6 @@
+<html><head>
+</head>
+<body>
+<div id="test"><marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee></div>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/166591-dynamic-1.html b/layout/reftests/marquee/166591-dynamic-1.html
new file mode 100644
index 0000000000..278b2a37bf
--- /dev/null
+++ b/layout/reftests/marquee/166591-dynamic-1.html
@@ -0,0 +1,11 @@
+<html><head>
+<script>
+function init() {
+ document.getElementById('test').innerHTML = '<marquee behavior="alternate" scrollamount="0">dynamic marquee</marquee>';
+}
+</script>
+</head>
+<body onload="init();">
+<div id="test"></div>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/336736-1-ref.html b/layout/reftests/marquee/336736-1-ref.html
new file mode 100644
index 0000000000..116e5ade28
--- /dev/null
+++ b/layout/reftests/marquee/336736-1-ref.html
@@ -0,0 +1,5 @@
+<html>
+<body>
+<div style="background: green; width: 50px">&nbsp;</div>
+</body>
+</html>
diff --git a/layout/reftests/marquee/336736-1a.html b/layout/reftests/marquee/336736-1a.html
new file mode 100644
index 0000000000..fb54f3060e
--- /dev/null
+++ b/layout/reftests/marquee/336736-1a.html
@@ -0,0 +1,13 @@
+<html>
+<body dir="rtl">
+<!-- The "alternate" behavior is necessary for the
+ marquee text to start out on the screen. -->
+<marquee
+ direction="right"
+ scrollamount="0"
+ behavior="alternate"
+>
+<div style="background: green; width: 50px">&nbsp;</div>
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/336736-1b.html b/layout/reftests/marquee/336736-1b.html
new file mode 100644
index 0000000000..85338167c2
--- /dev/null
+++ b/layout/reftests/marquee/336736-1b.html
@@ -0,0 +1,13 @@
+<html>
+<body>
+<!-- The "alternate" behavior is necessary for the
+ marquee text to start out on the screen. -->
+<marquee
+ direction="right"
+ scrollamount="0"
+ behavior="alternate"
+>
+<div style="background: green; width: 50px">&nbsp;</div>
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/406073-1-ref.html b/layout/reftests/marquee/406073-1-ref.html
new file mode 100644
index 0000000000..751bb5db7f
--- /dev/null
+++ b/layout/reftests/marquee/406073-1-ref.html
@@ -0,0 +1,11 @@
+<html class="reftest-wait">
+<body style="border:3px solid;" onload="setTimeout(doe, 0)">
+<marquee behavior="alternate" scrollamount="100"><span style="background-color: lime;">marquee</span></marquee>
+ <script>
+ function doe() {
+ document.getElementsByTagName('marquee')[0].stop();
+ document.documentElement.className = "";
+ }
+ </script>
+</body>
+</html>
diff --git a/layout/reftests/marquee/406073-1.html b/layout/reftests/marquee/406073-1.html
new file mode 100644
index 0000000000..01787afda3
--- /dev/null
+++ b/layout/reftests/marquee/406073-1.html
@@ -0,0 +1,23 @@
+<html class="reftest-wait">
+<body style="border:3px solid;" onload="setTimeout(doe, 0)">
+<marquee behavior="alternate" scrollamount="100"><span style="background-color: lime;">marquee</span></marquee>
+ <script>
+ function doe() {
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.getElementsByTagName('marquee')[0].start();
+ document.getElementsByTagName('marquee')[0].stop();
+ document.documentElement.className = "";
+ }
+ </script>
+</body>
+</html>
diff --git a/layout/reftests/marquee/407016-2-ref.html b/layout/reftests/marquee/407016-2-ref.html
new file mode 100644
index 0000000000..25fee1b7dc
--- /dev/null
+++ b/layout/reftests/marquee/407016-2-ref.html
@@ -0,0 +1,5 @@
+<html>
+<body>
+<div style="background-color: lime; height: 50px;"></div>
+</body>
+</html>
diff --git a/layout/reftests/marquee/407016-2.html b/layout/reftests/marquee/407016-2.html
new file mode 100644
index 0000000000..65e1273b9c
--- /dev/null
+++ b/layout/reftests/marquee/407016-2.html
@@ -0,0 +1,7 @@
+<html>
+<body>
+<marquee scrollamount="0" style="height: 50px; background-color: lime;">
+<div style="width: 9999px;">&nbsp;</div>
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/413027-4-ref.html b/layout/reftests/marquee/413027-4-ref.html
new file mode 100644
index 0000000000..22fdd42e60
--- /dev/null
+++ b/layout/reftests/marquee/413027-4-ref.html
@@ -0,0 +1,10 @@
+<html><head>
+<title>Testcase for bug 413027 - Marquee height is sized too small, clipping text vertically</title>
+</head>
+<body>
+
+<div style="background-color: lime; width: 600px; float:left;">
+ <div style="margin: 100px 0px; padding-left: 2px;">text</div>
+</div>
+
+</body></html>
diff --git a/layout/reftests/marquee/413027-4.html b/layout/reftests/marquee/413027-4.html
new file mode 100644
index 0000000000..d57f2f1215
--- /dev/null
+++ b/layout/reftests/marquee/413027-4.html
@@ -0,0 +1,15 @@
+<html><head>
+<title>Testcase for bug 413027 - Marquee height is sized too small, clipping text vertically</title>
+</head>
+<body>
+
+<marquee scrollamount="0" behavior="alternate" direction="right" style="background-color: lime; width: 600px;">
+<div>
+<!-- padding-left used to avoid risk of an antialiasing pixel that may
+ project to the left of the origin, causing a spurious test failure
+ (see bugs 476927, 475968) -->
+ <div style="margin: 100px 0px; padding-left: 2px;">text</div>
+</div>
+</marquee>
+
+</body></html>
diff --git a/layout/reftests/marquee/425247-1-ref.html b/layout/reftests/marquee/425247-1-ref.html
new file mode 100644
index 0000000000..3b3a84d41d
--- /dev/null
+++ b/layout/reftests/marquee/425247-1-ref.html
@@ -0,0 +1,9 @@
+<html><head>
+<title>Bug 425247 – Marquee with uppercase UP or DOWN as direction doesn't work properly</title>
+</head>
+<body>
+<marquee direction="up" bgcolor="magenta" behavior="alternate" scrollamount="0">
+<marquee bgcolor="yellow" behavior="alternate" scrollamount="0">marquee up</marquee>
+</marquee>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/425247-1.html b/layout/reftests/marquee/425247-1.html
new file mode 100644
index 0000000000..dfa5021c45
--- /dev/null
+++ b/layout/reftests/marquee/425247-1.html
@@ -0,0 +1,9 @@
+<html><head>
+<title>Bug 425247 – Marquee with uppercase UP or DOWN as direction doesn't work properly</title>
+</head>
+<body>
+<MARQUEE DIRECTION=UP BGCOLOR=MAGENTA BEHAVIOR=ALTERNATE SCROLLAMOUNT=0>
+<MARQUEE BGCOLOR=YELLOW BEHAVIOR=ALTERNATE SCROLLAMOUNT=0>marquee up</MARQUEE>
+</MARQUEE>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/425247-2-ref.html b/layout/reftests/marquee/425247-2-ref.html
new file mode 100644
index 0000000000..564d749798
--- /dev/null
+++ b/layout/reftests/marquee/425247-2-ref.html
@@ -0,0 +1,9 @@
+<html><head>
+<title>Bug 425247 – Marquee with uppercase UP or DOWN as direction doesn't work properly</title>
+</head>
+<body>
+<marquee direction="down" bgcolor="magenta" behavior="alternate" scrollamount="0">
+<marquee bgcolor="yellow" behavior="alternate" scrollamount="0">marquee down</marquee>
+</marquee>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/425247-2.html b/layout/reftests/marquee/425247-2.html
new file mode 100644
index 0000000000..4cb66b9017
--- /dev/null
+++ b/layout/reftests/marquee/425247-2.html
@@ -0,0 +1,9 @@
+<html><head>
+<title>Bug 425247 – Marquee with uppercase UP or DOWN as direction doesn't work properly</title>
+</head>
+<body>
+<MARQUEE DIRECTION=DOWN BGCOLOR=MAGENTA BEHAVIOR=ALTERNATE SCROLLAMOUNT=0>
+<MARQUEE BGCOLOR=YELLOW BEHAVIOR=ALTERNATE SCROLLAMOUNT=0>marquee down</MARQUEE>
+</MARQUEE>
+</body>
+</html> \ No newline at end of file
diff --git a/layout/reftests/marquee/429849-1-ref.html b/layout/reftests/marquee/429849-1-ref.html
new file mode 100644
index 0000000000..3b9c3166eb
--- /dev/null
+++ b/layout/reftests/marquee/429849-1-ref.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Bug 429849 – marquee text not on one line , part of this line on top and second part on bottom</title>
+</head>
+<body>
+<marquee behavior=alternate scrollamount=0 direction=right>
+This text should be on one line
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/429849-1.html b/layout/reftests/marquee/429849-1.html
new file mode 100644
index 0000000000..6b1757fd0e
--- /dev/null
+++ b/layout/reftests/marquee/429849-1.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<title>Bug 429849 – marquee text not on one line , part of this line on top and second part on bottom</title>
+</head>
+<body>
+<marquee behavior=alternate scrollamount=0 direction=right>
+This text <script>document.body.offsetHeight;</script>should be on one line
+</marquee>
+</body>
+</html>
diff --git a/layout/reftests/marquee/reftest.list b/layout/reftests/marquee/reftest.list
new file mode 100644
index 0000000000..ac6772f6c9
--- /dev/null
+++ b/layout/reftests/marquee/reftest.list
@@ -0,0 +1,11 @@
+== 166591-dynamic-1.html 166591-dynamic-1-ref.html
+fuzzy-if(Android,0-8,0-50) == 336736-1a.html 336736-1-ref.html
+fuzzy-if(Android,0-8,0-50) == 336736-1b.html 336736-1-ref.html
+== 406073-1.html 406073-1-ref.html
+== 407016-2.html 407016-2-ref.html
+fuzzy-if(Android,0-8,0-220) == 413027-4.html 413027-4-ref.html
+fuzzy-if(Android,0-8,0-30) == 425247-1.html 425247-1-ref.html
+fuzzy-if(Android,0-8,0-30) == 425247-2.html 425247-2-ref.html
+random == 429849-1.html 429849-1-ref.html # bug 432288
+== 1160342-1.html 1160342-ref.html
+== 1160342-2.html 1160342-ref.html