Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: os == 'win'
- Manifest: devtools/client/responsive/test/browser/browser.toml
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Verify the inRDMPane property is set on a document when that
// document is being viewed in Responsive Design Mode.
addRDMTask(TEST_URL, async function ({ ui }) {
const viewportBrowser = ui.getViewportBrowser();
const contentURL = await SpecialPowers.spawn(
viewportBrowser,
[],
() => content.document.URL
);
info("content URL is " + contentURL);
const contentInRDMPane = await SpecialPowers.spawn(
viewportBrowser,
[],
() => docShell.browsingContext.inRDMPane
);
ok(
contentInRDMPane,
"After RDM is opened, document should have inRDMPane set to true."
);
});