summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
committerMoonchild <moonchild@palemoon.org>2021-02-04 19:41:06 +0000
commit914368530ba622ff0117cd34bec058fb0d862155 (patch)
tree6c29459914d1b01ed27fad039d0b982d1dbc32c3 /testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html
parentc5ad76a2875ca5c06c5bbff7b2f2e3ff7b3599c3 (diff)
downloadUXP-914368530ba622ff0117cd34bec058fb0d862155.tar
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.gz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.lz
UXP-914368530ba622ff0117cd34bec058fb0d862155.tar.xz
UXP-914368530ba622ff0117cd34bec058fb0d862155.zip
Issue #439 - Remove web-platform tests from the tree.
This removes a total of 23,936 files we would never use nor have the capacity to properly maintain or keep up-to-date.
Diffstat (limited to 'testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html')
-rw-r--r--testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html73
1 files changed, 0 insertions, 73 deletions
diff --git a/testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html b/testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html
deleted file mode 100644
index facb2c7b9..000000000
--- a/testing/web-platform/tests/dom/events/Event-dispatch-target-moved.html
+++ /dev/null
@@ -1,73 +0,0 @@
-<!DOCTYPE html>
-<meta charset=utf-8>
-<title> Determined event propagation path - target moved </title>
-<link rel="help" href="https://dom.spec.whatwg.org/#concept-event-dispatch">
-<script src="/resources/testharness.js"></script>
-<script src="/resources/testharnessreport.js"></script>
-<div id=log></div>
-<table id="table" border="1" style="display: none">
- <tbody id="table-body">
- <tr id="table-row">
- <td id="table-cell">Shady Grove</td>
- <td>Aeolian</td>
- </tr>
- <tr id="parent">
- <td id="target">Over the river, Charlie</td>
- <td>Dorian</td>
- </tr>
- </tbody>
-</table>
-<script>
-test(function() {
- var event_type = "foo";
- var target = document.getElementById("target");
- var parent = document.getElementById("parent");
- var tbody = document.getElementById("table-body");
- var table = document.getElementById("table");
- var body = document.body;
- var html = document.documentElement;
- var targets = [window, document, html, body, table, tbody, parent, target];
- var expected_targets = targets.concat([target, parent, tbody, table, body, html, document, window]);
- var phases = [
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.CAPTURING_PHASE,
- Event.AT_TARGET,
- Event.AT_TARGET,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- Event.BUBBLING_PHASE,
- ];
-
- var actual_targets = [], actual_phases = [];
- var test_event = this.step_func(function(evt) {
- if (parent === target.parentNode) {
- var table_row = document.getElementById("table-row");
- table_row.appendChild(parent.removeChild(target));
- }
-
- actual_targets.push(evt.currentTarget);
- actual_phases.push(evt.eventPhase);
- });
-
- for (var i = 0; i < targets.length; i++) {
- targets[i].addEventListener(event_type, test_event, true);
- targets[i].addEventListener(event_type, test_event, false);
- }
-
- var evt = document.createEvent("Event");
- evt.initEvent(event_type, true, true);
- target.dispatchEvent(evt);
-
- assert_array_equals(actual_targets, expected_targets, "targets");
- assert_array_equals(actual_phases, phases, "phases");
-}, "Event propagation path when an element in it is moved within the DOM");
-</script>