diff options
Diffstat (limited to 'devtools/client/inspector/markup/test/browser_markup_dragdrop_dragRootNode.js')
-rw-r--r-- | devtools/client/inspector/markup/test/browser_markup_dragdrop_dragRootNode.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/devtools/client/inspector/markup/test/browser_markup_dragdrop_dragRootNode.js b/devtools/client/inspector/markup/test/browser_markup_dragdrop_dragRootNode.js new file mode 100644 index 0000000000..4c29fcc509 --- /dev/null +++ b/devtools/client/inspector/markup/test/browser_markup_dragdrop_dragRootNode.js @@ -0,0 +1,21 @@ +/* Any copyright is dedicated to the Public Domain. + http://creativecommons.org/publicdomain/zero/1.0/ */ + +"use strict"; + +// Test that the root node isn't draggable (as well as head and body). + +const TEST_URL = URL_ROOT + "doc_markup_dragdrop.html"; +const TEST_DATA = ["html", "head", "body"]; + +add_task(async function () { + const { inspector } = await openInspectorForURL(TEST_URL); + + for (const selector of TEST_DATA) { + info("Try to drag/drop node " + selector); + await simulateNodeDrag(inspector, selector); + + const container = await getContainerForSelector(selector, inspector); + ok(!container.isDragging, "The container hasn't been marked as dragging"); + } +}); |