summaryrefslogtreecommitdiffstats
path: root/dom/events/test/test_bug448602.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 01:13:27 +0000
commit40a355a42d4a9444dc753c04c6608dade2f06a23 (patch)
tree871fc667d2de662f171103ce5ec067014ef85e61 /dom/events/test/test_bug448602.html
parentAdding upstream version 124.0.1. (diff)
downloadfirefox-upstream/125.0.1.tar.xz
firefox-upstream/125.0.1.zip
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/events/test/test_bug448602.html')
-rw-r--r--dom/events/test/test_bug448602.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/dom/events/test/test_bug448602.html b/dom/events/test/test_bug448602.html
index 18b4cb2d2f..452a361a52 100644
--- a/dom/events/test/test_bug448602.html
+++ b/dom/events/test/test_bug448602.html
@@ -174,28 +174,7 @@ function runTests() {
is(SpecialPowers.unwrap(infos[0].listenerObject), l,
"Should have the right listener object (4)");
- // Event target chain tests
l3 = document.getElementById("testlevel3");
- var textnode = l3.firstChild;
- var chain = els.getEventTargetChainFor(textnode, true);
- ok(chain.length > 3, "Too short event target chain.");
- ok(SpecialPowers.compare(chain[0], textnode), "Wrong chain item (1)");
- ok(SpecialPowers.compare(chain[1], l3), "Wrong chain item (2)");
- ok(SpecialPowers.compare(chain[2], l2), "Wrong chain item (3)");
- ok(SpecialPowers.compare(chain[3], root), "Wrong chain item (4)");
-
- var hasDocumentInChain = false;
- var hasWindowInChain = false;
- for (var i = 0; i < chain.length; ++i) {
- if (SpecialPowers.compare(chain[i], document)) {
- hasDocumentInChain = true;
- } else if (SpecialPowers.compare(chain[i], window)) {
- hasWindowInChain = true;
- }
- }
-
- ok(hasDocumentInChain, "Should have document in event target chain!");
- ok(hasWindowInChain, "Should have window in event target chain!");
try {
els.getListenerInfoFor(null);