summaryrefslogtreecommitdiffstats
path: root/dom/tests
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-09-05 18:44:16 +0000
committerMoonchild <moonchild@palemoon.org>2020-09-05 18:44:16 +0000
commit1da42403ec84fcbb634a816bec0618e47d5e0b70 (patch)
tree88e47e0339f16123bcd7b6c6fc913676fafddd0f /dom/tests
parent602fbdcb44861c98c096d4fb2078c52a21b8485b (diff)
downloadUXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar
UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.gz
UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.lz
UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.tar.xz
UXP-1da42403ec84fcbb634a816bec0618e47d5e0b70.zip
Issue #1525 - Kill marquee element (uplift)
Diffstat (limited to 'dom/tests')
-rw-r--r--dom/tests/browser/browser_bug396843.js1
-rw-r--r--dom/tests/mochitest/bugs/mochitest.ini1
-rw-r--r--dom/tests/mochitest/bugs/test_bug1160342_marquee.html337
-rw-r--r--dom/tests/mochitest/bugs/test_bug396843.html1
4 files changed, 0 insertions, 340 deletions
diff --git a/dom/tests/browser/browser_bug396843.js b/dom/tests/browser/browser_bug396843.js
index 84d7e3b83..a2281d1b8 100644
--- a/dom/tests/browser/browser_bug396843.js
+++ b/dom/tests/browser/browser_bug396843.js
@@ -72,7 +72,6 @@ function testInDocument(doc, documentID) {
HTML_TAG("link", "Link")
HTML_TAG("listing", "Span")
HTML_TAG("map", "Map")
- HTML_TAG("marquee", "Div")
HTML_TAG("menu", "Shared")
HTML_TAG("meta", "Meta")
HTML_TAG("multicol", "Unknown")
diff --git a/dom/tests/mochitest/bugs/mochitest.ini b/dom/tests/mochitest/bugs/mochitest.ini
index 3743c6782..6865ada88 100644
--- a/dom/tests/mochitest/bugs/mochitest.ini
+++ b/dom/tests/mochitest/bugs/mochitest.ini
@@ -145,5 +145,4 @@ skip-if = toolkit == 'android' #Windows can't change size on Android
skip-if = toolkit == 'android'
[test_bug1022869.html]
[test_bug1112040.html]
-[test_bug1160342_marquee.html]
[test_bug1171215.html]
diff --git a/dom/tests/mochitest/bugs/test_bug1160342_marquee.html b/dom/tests/mochitest/bugs/test_bug1160342_marquee.html
deleted file mode 100644
index 8da13478e..000000000
--- a/dom/tests/mochitest/bugs/test_bug1160342_marquee.html
+++ /dev/null
@@ -1,337 +0,0 @@
-<!DOCTYPE html>
-<html>
-<!--
-https://bugzilla.mozilla.org/show_bug.cgi?id=1160342
--->
-<head>
- <title>Test for Bug 411103</title>
- <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
- <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
-</head>
-<body>
-<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1160342">Mozilla Bug 1160342</a>
-<p id="display"></p>
-<div id="content">
-<marquee id="a" style="border: 1px solid black;">marquee</marquee>
-</div>
-
-<pre id="test">
-<script class="testbody" type="text/javascript">
-/* The todos are cases where IE/Edge is throwing errors, but
- for Mozilla it was decided to not do that for now */
- var x=document.getElementById('a');
-
- SimpleTest.waitForExplicitFinish();
-
- setTimeout(function() {
- is(x.behavior, "scroll", "Wrong behavior value");
- x.setAttribute('behavior', 'alternate');
- is(x.behavior, "alternate", "Wrong behavior value");
- x.setAttribute('behavior', 'invalid');
- is(x.behavior, "scroll", "Wrong behavior value");;
- x.setAttribute('behavior', 'Scroll');
- is(x.behavior, "scroll", "Wrong behavior value");
- x.setAttribute('behavior', 'Slide');
- is(x.behavior, "slide", "Wrong behavior value");
- x.setAttribute('behavior', '');
- is(x.behavior, "scroll", "Wrong behavior value");
- x.setAttribute('behavior', 'slide');
- x.removeAttribute('behavior');
- is(x.behavior, "scroll", "Wrong behavior value");
- is(x.getAttribute('behavior'), null, "Wrong behavior attribute");
-
- x.behavior = 'alternate';
- is(x.behavior, "alternate", "Wrong behavior value");
- try {
- x.behavior = 'invalid';
- todo_is(false, true, "marquee.behavior = 'invalid' should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.behavior, "alternate", "Wrong behavior value");
- is(x.getAttribute('behavior'), "alternate", "Wrong behavior attribute");
- x.behavior = 'Slide';
- is(x.behavior, "slide", "Wrong behavior value");
- is(x.getAttribute('behavior'), "slide", "Wrong behavior attribute");
- try {
- x.behavior = 'invalid';
- todo_is(false, true, "marquee.behavior = 'invalid' should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- try {
- x.behavior = null;
- x.behavior = undefined;
- todo_is(false, true, "marquee.behavior = 'invalid' should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.behavior, "slide", "Wrong behavior value");
- is(x.getAttribute('behavior'), "slide", "Wrong behavior attribute");
- // This doesn't work in Mozilla due to chrome XBL security issues
- x.behavior = { toString: function _toString() { return "scroll"} }
- is(x.behavior, x.getAttribute('behavior'), "Wrong behavior value");
- x.behavior = 'scroll';
- is(x.behavior, "scroll", "Wrong behavior value");
-
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '1');
- is(x.loop, 1, "Wrong loop value");
- x.setAttribute('loop', 'invalid');
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '');
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '0');
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '1000');
- is(x.loop, 1000, "Wrong loop value");
- x.setAttribute('loop', '-0.123');
- is(x.loop, 1000, "Wrong loop value");
- x.setAttribute('loop', '-1.123');
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '-1');
- is(x.loop, -1, "Wrong loop value");
- x.setAttribute('loop', '1000');
- is(x.loop, 1000, "Wrong loop value");
- x.removeAttribute('loop');
- is(x.loop, -1, "Wrong loop value");
- is(x.getAttribute('loop'), null, "Wrong loop attribute");
-
- x.loop = 1;
- is(x.loop, 1, "Wrong loop value");
- is(x.getAttribute('loop'), "1", "Wrong loop attribute");
- try {
- x.loop = -2;
- todo_is(false, true, "marquee.loop = -2 should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.loop, 1, "Wrong loop value");
- is(x.getAttribute('loop'), "1", "Wrong loop attribute");
- try {
- x.loop = 'invalid';
- todo_is(false, true, ".loop = 'invalid' should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.loop, 1, "Wrong loop value");
- is(x.getAttribute('loop'), "1", "Wrong loop attribute");
- try {
- x.loop = null;
- todo_is(false, true, "marquee.loop = null should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.loop, 1, "Wrong loop value");
- is(x.getAttribute('loop'), "1", "Wrong loop attribute");
- x.loop = -1;
- is(x.loop, -1, "Wrong loop value");
- is(x.getAttribute('loop'), "-1", "Wrong loop attribute");
- x.loop = '100';
- is(x.loop, 100, "Wrong loop value");
- is(x.getAttribute('loop'), "100", "Wrong loop attribute");
- try {
- x.loop = -0.123;
- todo_is(false, true, "marquee.loop = null should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.loop, 100, "Wrong loop value");
- is(x.getAttribute('loop'), "100", "Wrong loop attribute");
- try {
- x.loop = 0;
- todo_is(false, true, "marquee.loop = null should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.loop, 100, "Wrong loop value");
- is(x.getAttribute('loop'), "100", "Wrong loop attribute");
- x.loop = -1.123;
- is(x.loop, -1, "Wrong loop value");
- is(x.getAttribute('loop'), "-1", "Wrong loop attribute");
-
-
- is(x.scrollAmount, 6, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '1');
- is(x.scrollAmount, 1, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', 'invalid');
- is(x.scrollAmount, 6, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '1000');
- is(x.scrollAmount, 1000, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '-1');
- is(x.scrollAmount, 1000, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '999');
- is(x.scrollAmount, 999, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '');
- is(x.scrollAmount, 6, "Wrong scrollAmount value");
- x.setAttribute('scrollAmount', '999');
- x.removeAttribute('scrollAmount');
- is(x.scrollAmount, 6, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), null, "Wrong scrollamount attribute");
-
- x.scrollAmount = 1;
- is(x.scrollAmount, 1, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), "1", "Wrong scrolldelay attribute");
- try {
- x.scrollAmount = -2;
- todo_is(false, true, "marquee.scrollAmount = -2 should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.scrollAmount, 1, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), "1", "Wrong scrolldelay attribute");
- x.scrollAmount = 'invalid';
- is(x.scrollAmount, 0, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), "0", "Wrong scrolldelay attribute");
- x.scrollAmount = 1;
- x.scrollAmount = null;
- is(x.scrollAmount, 0, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), "0", "Wrong scrolldelay attribute");
- x.scrollAmount = '2';
- is(x.scrollAmount, 2, "Wrong scrollAmount value");
- is(x.getAttribute('scrollamount'), "2", "Wrong scrolldelay attribute");
-
-
- is(x.scrollDelay, 85, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '1');
- is(x.scrollDelay, 1, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', 'invalid');
- is(x.scrollDelay, 85, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '70');
- is(x.scrollDelay, 70, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '59');
- is(x.scrollDelay, 59, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '1000');
- is(x.scrollDelay, 1000, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '-1');
- is(x.scrollDelay, 1000, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '');
- is(x.scrollDelay, 85, "Wrong scrollDelay value");
- x.setAttribute('scrollDelay', '1000');
- x.removeAttribute('scrollDelay');
- is(x.scrollDelay, 85, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), null, "Wrong scrolldelay attribute");
-
- x.scrollDelay = 100;
- is(x.scrollDelay, 100, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "100", "Wrong scrolldelay attribute");
- try {
- x.scrollDelay = -2;
- todo_is(false, true, "marquee.scrollDelay = -2 should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.scrollDelay, 100, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "100", "Wrong scrolldelay attribute");
- try {
- x.scrollDelay = 'invalid';
- todo_is(false, true, "marquee.scrollDelay = 'invalid' should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.scrollDelay, 100, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "100", "Wrong scrolldelay attribute");
- try {
- x.scrollDelay = null;
- todo_is(false, true, "marquee.scrollDelay = null should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.scrollDelay, 100, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "100", "Wrong scrolldelay attribute");
- try {
- x.scrollDelay = -1;
- todo_is(false, true, "marquee.scrollDelay = -1 should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.scrollDelay, 100, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "100", "Wrong scrolldelay attribute");
- x.scrollDelay = '50';
- is(x.scrollDelay, 50, "Wrong scrollDelay value");
- is(x.getAttribute('scrolldelay'), "50", "Wrong scrolldelay attribute");
-
-
- is(x.trueSpeed, false, "Wrong trueSpeed value");
- x.setAttribute('trueSpeed', '1');
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- x.setAttribute('trueSpeed', 'false');
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- x.setAttribute('trueSpeed', '');
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- x.removeAttribute('trueSpeed');
- is(x.trueSpeed, false, "Wrong trueSpeed value");
- is(x.getAttribute('truespeed'), null, "Wrong truespeed attribute");
-
- x.trueSpeed = 1;
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- is(x.getAttribute('truespeed'), "", "Wrong truespeed attribute");
- x.trueSpeed = -2;
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- is(x.getAttribute('truespeed'), "", "Wrong truespeed attribute");
- x.trueSpeed = null;
- is(x.trueSpeed, false, "Wrong trueSpeed value");
- is(x.getAttribute('truespeed'), null, "Wrong truespeed attribute");
- x.trueSpeed = '100';
- is(x.trueSpeed, true, "Wrong trueSpeed value");
- is(x.getAttribute('truespeed'), "", "Wrong truespeed attribute");
-
-
- is(x.direction, "left", "Wrong direction value");
- x.setAttribute('direction', 'right');
- is(x.direction, "right", "Wrong direction value");
- x.setAttribute('direction', 'invalid');
- is(x.direction, "left", "Wrong direction value");
- x.setAttribute('direction', 'RIGHT');
- is(x.direction, "right", "Wrong direction value");
- x.setAttribute('direction', '');
- is(x.direction, "left", "Wrong direction value");
- x.setAttribute('direction', 'right');
- x.removeAttribute('direction');
- is(x.direction, "left", "Wrong direction value");
- is(x.getAttribute('direction'), null, "Wrong direction attribute");
- x.setAttribute('direction', 'up');
- is(x.direction, "up", "Wrong direction value");
- x.setAttribute('direction', 'down');
- is(x.direction, "down", "Wrong direction value");
- x.removeAttribute('direction');
- is(x.direction, "left", "Wrong direction value");
- is(x.getAttribute('direction'), null, "Wrong direction attribute");
-
- x.direction = 'right';
- is(x.direction, "right", "Wrong direction value");
- is(x.getAttribute('direction'), "right", "Wrong direction attribute");
- x.direction = 'up';
- is(x.direction, "up", "Wrong direction value");
- is(x.getAttribute('direction'), "up", "Wrong direction attribute");
- x.direction = 'down';
- is(x.direction, "down", "Wrong direction value");
- is(x.getAttribute('direction'), "down", "Wrong direction attribute");
- try {
- x.direction = 1;
- todo_is(false, true, "marquee.direction = 1 should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.direction, "down", "Wrong direction value");
- is(x.getAttribute('direction'), "down", "Wrong direction attribute");
- try {
- x.direction = null;
- todo_is(false, true, "marquee.direction = null should throw");
- } catch(e) {
- ok(true, "Exception was raised");
- }
- is(x.direction, "down", "Wrong direction value");
- is(x.getAttribute('direction'), "down", "Wrong direction attribute");
- // This doesn't work in Mozilla due to chrome XBL security issues
- x.direction = { toString: function _toString() { return "right"} }
- is(x.direction, x.getAttribute('direction'), "Wrong direction value");
- x.direction = 'left';
- is(x.direction, "left", "Wrong direction value");
- SimpleTest.finish();
- }, 0);
-
-</script>
-</pre>
-</body>
-</html>
diff --git a/dom/tests/mochitest/bugs/test_bug396843.html b/dom/tests/mochitest/bugs/test_bug396843.html
index 20dc53068..031843fd4 100644
--- a/dom/tests/mochitest/bugs/test_bug396843.html
+++ b/dom/tests/mochitest/bugs/test_bug396843.html
@@ -92,7 +92,6 @@ HTML_TAG("li", "LI")
HTML_TAG("link", "Link")
HTML_TAG("listing", "Span")
HTML_TAG("map", "Map")
-HTML_TAG("marquee", "Div")
HTML_TAG("menu", "Shared")
HTML_TAG("meta", "Meta")
HTML_TAG("multicol", "Unknown")