test_pointerevent_attributes_mouse-manual.html 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. <!DOCTYPE HTML>
  2. <html>
  3. <!--
  4. https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
  5. -->
  6. <head>
  7. <meta charset="utf-8">
  8. <title>Test for Bug 1000870</title>
  9. <meta name="author" content="Maksim Lebedev" />
  10. <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
  11. <script type="text/javascript" src="/tests/SimpleTest/EventUtils.js"></script>
  12. <script type="text/javascript" src="mochitest_support_external.js"></script>
  13. <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  14. <script type="text/javascript">
  15. SimpleTest.waitForExplicitFinish();
  16. function startTest() {
  17. runTestInNewWindow("pointerevent_attributes_mouse-manual.html");
  18. }
  19. function executeTest(int_win) {
  20. sendMouseEvent(int_win, "square1", "mousemove", {button:-1});
  21. sendMouseEvent(int_win, "square1", "mousedown", {button:0});
  22. sendMouseEvent(int_win, "square1", "mouseup", {button:0});
  23. sendMouseEvent(int_win, "square1", "mousemove", {button:-1});
  24. sendMouseEvent(int_win, "square1", "mousemove", {button:-1,
  25. offsetX: -1,
  26. offsetY: -1});
  27. }
  28. </script>
  29. </head>
  30. <body>
  31. </body>
  32. </html>