Backed out changeset 4fc8d640d0f9 (bug 1488450) because it depends on bug 1471764 which got backed out. a=backout CLOSED TREE
authorSebastian Hengst <archaeopteryx@coole-files.de>
Wed, 05 Sep 2018 02:42:10 +0300
changeset 483039 bb0febbdbb250756bbaab3ebf525874fdaa0e170
parent 483034 5b55659fa99f1318b48e1edc8cffdb4b56a45c0d
child 483040 417f206531b6659dcedb5be8a43f8f8b7813673f
child 483055 b82e60a43397c740d9f3f32837930cd200a3921a
child 483071 8f50aac218b58dfb67271e1dbed724baa8e1d713
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
reviewersbackout
bugs1488450, 1471764
milestone64.0a1
backs out4fc8d640d0f98cffc652e1e69c207259e8c511cb
Backed out changeset 4fc8d640d0f9 (bug 1488450) because it depends on bug 1471764 which got backed out. a=backout CLOSED TREE
devtools/client/inspector/markup/test/browser_markup_flex_display_badge.js
deleted file mode 100644
--- a/devtools/client/inspector/markup/test/browser_markup_flex_display_badge.js
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Any copyright is dedicated to the Public Domain.
- http://creativecommons.org/publicdomain/zero/1.0/ */
-
-"use strict";
-
-// Tests that the flex display badge toggles on the flexbox highlighter.
-
-const TEST_URI = `
-  <style type="text/css">
-    #flex {
-      display: flex;
-    }
-  </style>
-  <div id="flex"></div>
-`;
-
-const HIGHLIGHTER_TYPE = "FlexboxHighlighter";
-
-add_task(async function() {
-  await pushPref("devtools.inspector.flexboxHighlighter.enabled", true);
-  await pushPref("devtools.flexboxinspector.enabled", true);
-  await addTab("data:text/html;charset=utf-8," + encodeURIComponent(TEST_URI));
-  const { inspector } = await openLayoutView();
-  const { highlighters, store } = inspector;
-
-  info("Check the flex display badge is shown and not active.");
-  await selectNode("#flex", inspector);
-  const flexContainer = await getContainerForSelector("#flex", inspector);
-  const flexDisplayBadge = flexContainer.elt.querySelector(".markup-badge[data-display]");
-  ok(!flexDisplayBadge.classList.contains("active"), "flex display badge is not active.");
-
-  info("Check the initial state of the flex highlighter.");
-  ok(!highlighters.highlighters[HIGHLIGHTER_TYPE],
-    "No flexbox highlighter exists in the highlighters overlay.");
-  ok(!highlighters.flexboxHighlighterShown, "No flexbox highlighter is shown.");
-
-  info("Toggling ON the flexbox highlighter from the flex display badge.");
-  const onHighlighterShown = highlighters.once("flexbox-highlighter-shown");
-  let onCheckboxChange = waitUntilState(store, state => state.flexbox.highlighted);
-  flexDisplayBadge.click();
-  await onHighlighterShown;
-  await onCheckboxChange;
-
-  info("Check the flexbox highlighter is created and flex display badge state.");
-  ok(highlighters.highlighters[HIGHLIGHTER_TYPE],
-    "Flexbox highlighter is created in the highlighters overlay.");
-  ok(highlighters.flexboxHighlighterShown, "Flexbox highlighter is shown.");
-  ok(flexDisplayBadge.classList.contains("active"), "flex display badge is active.");
-
-  info("Toggling OFF the flexbox highlighter from the flex display badge.");
-  const onHighlighterHidden = highlighters.once("flexbox-highlighter-hidden");
-  onCheckboxChange = waitUntilState(store, state => !state.flexbox.highlighted);
-  flexDisplayBadge.click();
-  await onHighlighterHidden;
-  await onCheckboxChange;
-
-  ok(!flexDisplayBadge.classList.contains("active"), "flex display badge is not active.");
-});