Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
/* Any copyright is dedicated to the Public Domain.
"use strict";
// Test that a message is displayed when no flex container is selected.
const TEST_URI = `
<div></div>
`;
add_task(async function () {
await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
const { flexboxInspector } = await openLayoutView();
const { document: doc } = flexboxInspector;
info("Checking the initial state of the Flexbox Inspector.");
ok(
doc.querySelector(
".flex-accordion .devtools-sidepanel-no-result",
"A message is shown when no flex container is selected."
)
);
});