Bug 1449625: Use computed view instad of animatoin inspector. r?gl draft
authorDaisuke Akatsuka <dakatsuka@mozilla.com>
Thu, 29 Mar 2018 07:01:15 +0900
changeset 774435 fba69ce376f258a721a9b5ed659c9cf9bea37453
parent 774403 825cdcd3130f2f3620b73a8d12daf08662754f8f
child 774458 12c81bc52f48ebe39ae198fbe36a426ce205085a
push id104400
push userbmo:dakatsuka@mozilla.com
push dateWed, 28 Mar 2018 22:11:31 +0000
reviewersgl
bugs1449625
milestone61.0a1
Bug 1449625: Use computed view instad of animatoin inspector. r?gl MozReview-Commit-ID: B3daKTlqf91
devtools/client/inspector/markup/test/browser_markup_events_click_to_close.js
--- a/devtools/client/inspector/markup/test/browser_markup_events_click_to_close.js
+++ b/devtools/client/inspector/markup/test/browser_markup_events_click_to_close.js
@@ -48,26 +48,21 @@ add_task(async function() {
     inspector.markup.doc.defaultView);
 
   await onHidden;
   info("previous tooltip hidden");
 
   await onShown;
   info("event tooltip for the second div is shown");
 
-  info("Click on the animation inspector tab");
+  info("Click on the computed view tab");
   let onHighlighterHidden = toolbox.once("node-unhighlight");
-  let onTabInspectorSelected = inspector.sidebar.once("newanimationinspector-selected");
-  let onInspectorUpdated = inspector.once("inspector-updated");
-  let animationInspectorTab =
-    inspector.panelDoc.querySelector("#newanimationinspector-tab");
-  EventUtils.synthesizeMouseAtCenter(animationInspectorTab, {},
+  let onTabComputedViewSelected = inspector.sidebar.once("computedview-selected");
+  let computedViewTab = inspector.panelDoc.querySelector("#computedview-tab");
+  EventUtils.synthesizeMouseAtCenter(computedViewTab, {},
     inspector.panelDoc.defaultView);
 
-  await onTabInspectorSelected;
-  info("animation inspector was selected");
-
-  await onInspectorUpdated;
-  info("animation inspector was updated");
+  await onTabComputedViewSelected;
+  info("computed view was selected");
 
   await onHighlighterHidden;
   info("box model highlighter hidden after moving the mouse out of the markup view");
 });