dom/events/test/pointerevents/test_pointerevent_pointermove-on-chorded-mouse-button.html
author Ho-Pang Hsu <hopang.hsu@gmail.com>
Sat, 22 Oct 2016 08:42:00 +0200
changeset 325591 13fd65d8a143c66d3bcf937a60b858ea91115955
parent 317869 b9ab8fa47b68f769c5f2813710fb04276eca9b0b
child 325592 55a0e013901aecb44dc360133aaa22cca3372b68
permissions -rw-r--r--
Bug 1302297 - Part 4: Remove every button and buttons used in testcases. f=stone, r=smaug

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
-->
  <head>
    <meta charset="utf-8">
    <title>Test for Bug 1000870</title>
    <meta name="author" content="Maksim Lebedev" />
    <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
    <script type="text/javascript" src="mochitest_support_external.js"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
    <script type="text/javascript">
      SimpleTest.waitForExplicitFinish();
      function startTest() {
        runTestInNewWindow("pointerevent_pointermove-on-chorded-mouse-button.html");
      }

      function executeTest(int_win) {
        var utils = _getDOMWindowUtils(int_win);
        sendMouseEvent(int_win, "target0", "mousemove");
        sendMouseEvent(int_win, "target0", "mousedown");
        sendMouseEvent(int_win, "target0", "mousemove");
        sendMouseEvent(int_win, "target0", "mousedown");
        sendMouseEvent(int_win, "target0", "mousemove");
        sendMouseEvent(int_win, "target0", "mouseup");
        sendMouseEvent(int_win, "target0", "mousemove");
        sendMouseEvent(int_win, "target0", "mouseup");
      }
    </script>
  </head>
  <body>
  </body>
</html>