browser_in_rdm_pane.js (780B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 // Verify the inRDMPane property is set on a document when that 7 // document is being viewed in Responsive Design Mode. 8 9 const TEST_URL = "http://example.com/"; 10 11 addRDMTask(TEST_URL, async function ({ ui }) { 12 const viewportBrowser = ui.getViewportBrowser(); 13 14 const contentURL = await SpecialPowers.spawn( 15 viewportBrowser, 16 [], 17 () => content.document.URL 18 ); 19 info("content URL is " + contentURL); 20 21 const contentInRDMPane = await SpecialPowers.spawn( 22 viewportBrowser, 23 [], 24 () => docShell.browsingContext.inRDMPane 25 ); 26 27 ok( 28 contentInRDMPane, 29 "After RDM is opened, document should have inRDMPane set to true." 30 ); 31 });