dom/events/test/test_bug624127.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/events/test/test_bug624127.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <title>Test for Bug 624127</title>
     1.7 +  <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
     1.8 +  <script type="application/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
     1.9 +  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    1.10 +</head>
    1.11 +<body onload="setTimeout('runTest()', 0)">
    1.12 +<p id="display"></p>
    1.13 +<div id="content" style="display: none">
    1.14 +  
    1.15 +</div>
    1.16 +<pre id="test">
    1.17 +<script type="application/javascript">
    1.18 +
    1.19 +SimpleTest.waitForExplicitFinish();
    1.20 +
    1.21 +function runTest() {
    1.22 +  synthesizeMouse($("text"), 2, 2, { type: "mousedown" });
    1.23 +  synthesizeMouse(frames[0].document.body, 2, 2, { type: "mouseup" }, frames[0]);
    1.24 +  synthesizeMouse($("text2"), 50, 8, { type: "mousemove" });
    1.25 +
    1.26 +  is(window.getSelection().toString(), "", "no selection made");
    1.27 +  SimpleTest.finish();
    1.28 +}
    1.29 +
    1.30 +</script>
    1.31 +</pre>
    1.32 +
    1.33 +<p id="text">Normal text</p>
    1.34 +<iframe src="data:text/plain,text in iframe"></iframe>
    1.35 +<p id="text2">Normal text</p>
    1.36 +
    1.37 +</body>
    1.38 +</html>

mercurial