summaryrefslogtreecommitdiffstats
path: root/layout/tables/test/test_bug541668_table_event_delivery.html
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 17:32:43 +0000
commit6bf0a5cb5034a7e684dcc3500e841785237ce2dd (patch)
treea68f146d7fa01f0134297619fbe7e33db084e0aa /layout/tables/test/test_bug541668_table_event_delivery.html
parentInitial commit. (diff)
downloadthunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.tar.xz
thunderbird-6bf0a5cb5034a7e684dcc3500e841785237ce2dd.zip
Adding upstream version 1:115.7.0.upstream/1%115.7.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'layout/tables/test/test_bug541668_table_event_delivery.html')
-rw-r--r--layout/tables/test/test_bug541668_table_event_delivery.html48
1 files changed, 48 insertions, 0 deletions
diff --git a/layout/tables/test/test_bug541668_table_event_delivery.html b/layout/tables/test/test_bug541668_table_event_delivery.html
new file mode 100644
index 0000000000..902b4c140d
--- /dev/null
+++ b/layout/tables/test/test_bug541668_table_event_delivery.html
@@ -0,0 +1,48 @@
+<!DOCTYPE HTML>
+<html>
+<!--
+https://bugzilla.mozilla.org/show_bug.cgi?id=541668
+-->
+<head>
+ <title>Test for Bug 541668</title>
+ <script src="/tests/SimpleTest/SimpleTest.js"></script>
+ <script src="/tests/SimpleTest/EventUtils.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=541668">Mozilla Bug 541668</a>
+<table id="display">
+ <tr>
+ <td rowspan="2">
+ <div id="target" style="background:fuchsia;height:200px;width:200px"></div>
+ </td>
+ <td>Cell</td>
+ </tr>
+ <tr>
+ <td>Cell</td>
+ </tr>
+</table>
+<pre id="test">
+<script type="application/javascript">
+
+/** Test for Bug 541668 **/
+
+SimpleTest.waitForExplicitFinish();
+SimpleTest.waitForFocus(run_test);
+
+function run_test()
+{
+ var target = document.getElementById("target");
+
+ var got_mousemove = false;
+ target.addEventListener("mousemove",
+ function(event) { got_mousemove = true });
+ synthesizeMouse(target, 150, 150, { type: "mousemove" });
+ is(got_mousemove, true, "should get mousemove on block");
+ SimpleTest.finish();
+}
+
+</script>
+</pre>
+</body>
+</html>