Bug 1449625 - Part 1: Select the computed view instead of animation inspector in browser_markup_events_click_to_close.js test. r=gl

This commit is contained in:
Daisuke Akatsuka 2018-04-03 08:35:46 +09:00
Родитель afd77f7fd5
Коммит d7f7c75314
1 изменённых файлов: 6 добавлений и 11 удалений

Просмотреть файл

@ -53,20 +53,15 @@ add_task(async function() {
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");