DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (920bcf17a9e1)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
<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="/MochiKit/MochiKit.js"></script>
  <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() {
    netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
    var wu =  window.QueryInterface(Components.interfaces.nsIInterfaceRequestor)
                    .getInterface(Components.interfaces.nsIDOMWindowUtils);
    wu.sendMouseEvent('mousedown',  0, 50, 0, 1, 4);
    wu.sendMouseEvent('mousemove',  70, 70, 0, 0, 4);
    wu.sendMouseEvent('mousemove',  80, 500, 0, 0, 4);

    is(window.getSelection().rangeCount, 0, "rangeCount should be 0");

    SimpleTest.finish();
  }, 0);
}

SimpleTest.waitForExplicitFinish();
addLoadEvent(doShiftDrag);
</script>

</pre>
</body>
</html>