tor-browser

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

browser_markup_dragdrop_dragRootNode.js (682B)


      1 /* Any copyright is dedicated to the Public Domain.
      2 http://creativecommons.org/publicdomain/zero/1.0/ */
      3 
      4 "use strict";
      5 
      6 // Test that the root node isn't draggable (as well as head and body).
      7 
      8 const TEST_URL = URL_ROOT + "doc_markup_dragdrop.html";
      9 const TEST_DATA = ["html", "head", "body"];
     10 
     11 add_task(async function () {
     12  const { inspector } = await openInspectorForURL(TEST_URL);
     13 
     14  for (const selector of TEST_DATA) {
     15    info("Try to drag/drop node " + selector);
     16    await simulateNodeDrag(inspector, selector);
     17 
     18    const container = await getContainerForSelector(selector, inspector);
     19    ok(!container.isDragging, "The container hasn't been marked as dragging");
     20  }
     21 });