tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_wpt_pointerevent_drag_interaction-manual.html (1280B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1669673
      5 -->
      6  <head>
      7    <meta charset="utf-8">
      8    <title>Test for Bug 1669673</title>
      9    <meta name="author" content="Maksim Lebedev" />
     10    <script src="/tests/SimpleTest/SimpleTest.js"></script>
     11    <script 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("wpt/html/pointerevent_drag_interaction-manual.html");
     18      }
     19      async function executeTest(int_win) {
     20        info("executeTest");
     21        // DndWithoutCapture
     22        await doDragAndDrop(int_win, "target0", "target1");
     23        // DndWithCapture
     24        await doDragAndDrop(int_win, "target0", "target1");
     25        // DndWithCaptureMouse
     26        await doDragAndDrop(int_win, "target0", "target1");
     27        // DndPrevented
     28        await doDragAndDrop(int_win, "target0", "target1", {
     29          expectCancelDragStart: true,
     30          // Move mouse to target1.
     31          stepY: 33
     32        });
     33      }
     34    </script>
     35  </head>
     36  <body>
     37  </body>
     38 </html>