/* Any copyright is dedicated to the Public Domain. http://creativecommons.org/publicdomain/zero/1.0/ */ "use strict"; const TEST_URL = URL_ROOT + "doc_markup_pseudo.html"; // Test that reloading the page when an element with sibling pseudo elements is selected // does not result in missing elements in the markup-view after reload. // Non-regression test for bug 1506792. add_task(async function testReload() { const { inspector } = await openInspectorForURL(TEST_URL); await selectNode("div", inspector); info("Check that the markup-view shows the expected nodes before reload"); await checkMarkupView(inspector); await reloadSelectedTab(); info("Check that the markup-view shows the expected nodes after reload"); await checkMarkupView(inspector); }); // Test ::before::marker add_task(async function testMarkerOnPseudo() { const { inspector } = await openInspectorForURL(TEST_URL); await selectNode("ul", inspector); const ulNodeFront = await getNodeFront("ul", inspector); const ulContainer = await getContainerForNodeFront(ulNodeFront, inspector); is( ulContainer.expander.style.visibility, "visible", "Expander button is visible for