2009-02-21 19:15:07 +03:00
|
|
|
<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() {
|
2013-09-11 15:52:42 +04:00
|
|
|
var wu = SpecialPowers.DOMWindowUtils;
|
2014-03-25 00:12:41 +04:00
|
|
|
wu.sendMouseEvent('mousedown', 0, 0, 0, 1, 4);
|
|
|
|
wu.sendMouseEvent('mousemove', 60, 10, 0, 0, 4);
|
|
|
|
wu.sendMouseEvent('mousemove', 70, 250, 0, 0, 4);
|
2009-02-21 19:15:07 +03:00
|
|
|
|
|
|
|
is(window.getSelection().rangeCount, 0, "rangeCount should be 0");
|
2014-03-25 00:12:41 +04:00
|
|
|
wu.sendMouseEvent('mouseup', 70, 250, 0, 0, 4);
|
2009-02-21 19:15:07 +03:00
|
|
|
|
|
|
|
SimpleTest.finish();
|
|
|
|
}, 0);
|
|
|
|
}
|
|
|
|
|
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
addLoadEvent(doShiftDrag);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</pre>
|
|
|
|
</body>
|
|
|
|
</html>
|