browser_flexbox_empty_state.js (669B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 // Test that a message is displayed when no flex container is selected. 7 8 const TEST_URI = ` 9 <div></div> 10 `; 11 12 add_task(async function () { 13 await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI)); 14 const { flexboxInspector } = await openLayoutView(); 15 const { document: doc } = flexboxInspector; 16 17 info("Checking the initial state of the Flexbox Inspector."); 18 ok( 19 doc.querySelector( 20 ".flex-accordion .devtools-sidepanel-no-result", 21 "A message is shown when no flex container is selected." 22 ) 23 ); 24 });