diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/tables/test | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/tables/test')
-rw-r--r-- | layout/tables/test/mochitest.ini | 4 | ||||
-rw-r--r-- | layout/tables/test/test_bug337124.html | 32 | ||||
-rw-r--r-- | layout/tables/test/test_bug541668_table_event_delivery.html | 49 |
3 files changed, 85 insertions, 0 deletions
diff --git a/layout/tables/test/mochitest.ini b/layout/tables/test/mochitest.ini new file mode 100644 index 000000000..8172770b4 --- /dev/null +++ b/layout/tables/test/mochitest.ini @@ -0,0 +1,4 @@ +[DEFAULT] + +[test_bug337124.html] +[test_bug541668_table_event_delivery.html] diff --git a/layout/tables/test/test_bug337124.html b/layout/tables/test/test_bug337124.html new file mode 100644 index 000000000..e4f85532d --- /dev/null +++ b/layout/tables/test/test_bug337124.html @@ -0,0 +1,32 @@ +<html><head> +<title>Test for Bug 337124</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=337124">Mozilla Bug 337124</a> + +<span style="display: table-row-group;"> + <input type="text"> + </span> + <div style="display: table-column-group;"> + <script>document.body.offsetHeight;</script> + </div><span style="display: table-row-group;"> + <input id="i1" type="text"> + </span><fieldset id="f1" style="display: table-column-group;"> + </fieldset> +</fieldset> + +<pre id="test"> +<script class="testbody" type="text/javascript"> +var passed = false; +if ( document.getElementById("f1").offsetTop > document.getElementById("i1").offsetTop) { + passed = true; +} + +ok(passed, "right layout order"); + +</script> +</pre> +</body> +</html>
\ No newline at end of file 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 000000000..94835d469 --- /dev/null +++ b/layout/tables/test/test_bug541668_table_event_delivery.html @@ -0,0 +1,49 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=541668 +--> +<head> + <title>Test for Bug 541668</title> + <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <script type="application/javascript" 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 }, + false); + synthesizeMouse(target, 150, 150, { type: "mousemove" }); + is(got_mousemove, true, "should get mousemove on block"); + SimpleTest.finish(); +} + +</script> +</pre> +</body> +</html> |