browser_dragdrop_shadow.js (910B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 // Drag and drop stuff from inside one shadow DOM to another shadow DOM. 6 // Includes shadow DOMs in iframes. 7 8 "use strict"; 9 10 const kBaseUrl1 = "https://example.org/browser/dom/events/test/"; 11 const kBaseUrl2 = "https://example.com/browser/dom/events/test/"; 12 13 add_setup(async function () { 14 await setup({ 15 outerURL1: kBaseUrl1 + "browser_dragdrop_shadow_outer.html", 16 outerURL2: kBaseUrl2 + "browser_dragdrop_shadow_outer.html", 17 innerURL1: kBaseUrl1 + "browser_dragdrop_shadow_inner.html", 18 innerURL2: kBaseUrl2 + "browser_dragdrop_shadow_inner.html", 19 }); 20 }); 21 22 Services.scriptloader.loadSubScript( 23 "chrome://mochitests/content/browser/dom/events/test/browser_dragdrop_impl.js", 24 this 25 );