mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
17b498a5a1
--HG-- extra : rebase_source : ffeb4f2d49c6a20a95cc3ca0da63b49c10dee904
41 lines
1.0 KiB
HTML
41 lines
1.0 KiB
HTML
<html>
|
|
<!--
|
|
https://bugzilla.mozilla.org/show_bug.cgi?id=470212
|
|
-->
|
|
<head>
|
|
<title>Test for Bug 470212 - crash [@ nsContentUtils::ComparePoints]</title>
|
|
<script type="application/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=470212">Mozilla Bug 470212</a>
|
|
<div style="width: 200px;">
|
|
<ca>
|
|
<canvas style="border: 1px solid black;"></canvas>
|
|
</ca>
|
|
</div>
|
|
|
|
<pre id="test">
|
|
<script>
|
|
function doShiftDrag(){
|
|
setTimeout(function() {
|
|
var wu = SpecialPowers.DOMWindowUtils;
|
|
wu.sendMouseEvent('mousedown', 0, 0, 0, 1, 4);
|
|
wu.sendMouseEvent('mousemove', 60, 10, 0, 0, 4);
|
|
wu.sendMouseEvent('mousemove', 70, 250, 0, 0, 4);
|
|
|
|
is(window.getSelection().rangeCount, 0, "rangeCount should be 0");
|
|
wu.sendMouseEvent('mouseup', 70, 250, 0, 0, 4);
|
|
|
|
SimpleTest.finish();
|
|
}, 0);
|
|
}
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
addLoadEvent(doShiftDrag);
|
|
</script>
|
|
|
|
</pre>
|
|
</body>
|
|
</html>
|