dom/events/test/pointerevents/test_pointerevent_suppress_compat_events_on_drag_mouse.html
author Stone Shih <sshih@mozilla.com>
Wed, 21 Sep 2016 14:46:44 +0800
changeset 317869 b9ab8fa47b68f769c5f2813710fb04276eca9b0b
parent 310676 c09313cf63cfd8efe5a00362b7fc1c6c3a83cbae
child 325591 13fd65d8a143c66d3bcf937a60b858ea91115955
permissions -rw-r--r--
Bug 1304290 - Part 1: Add a helper function to run test in a new window. r=smaug MozReview-Commit-ID: 4nLTUSbkYlH

<!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_suppress_compat_events_on_drag_mouse.html");
      }
      function executeTest(int_win) {
        sendMouseEvent(int_win, "target0", "mousedown", {button:0});
        sendMouseEvent(int_win, "target0", "mousemove", {button:0});
        sendMouseEvent(int_win, "target0", "mouseup",   {button:0});
        sendMouseEvent(int_win, "target1", "mousedown", {button:0});
        sendMouseEvent(int_win, "target1", "mousemove", {button:0});
        sendMouseEvent(int_win, "target1", "mouseup",   {button:0});
        sendMouseEvent(int_win, "done",    "mousedown", {button:0});
        sendMouseEvent(int_win, "done",    "mouseup",   {button:0});
      }
    </script>
  </head>
  <body>
  </body>
</html>