Bug 1333561 - Part 5: Replace the inspector and computed view tests with the correct box model selectors. r=me

This commit is contained in:
Gabriel Luong 2017-01-28 17:38:58 -05:00
Родитель b0eccb57d9
Коммит 7b223594ba
3 изменённых файлов: 4 добавлений и 3 удалений

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

@ -34,7 +34,7 @@ function* testToggleDefaultStyles(inspector, computedView) {
function* testAddTextInFilter(inspector, computedView) {
info("setting filter text to \"color\"");
let doc = computedView.styleDocument;
let boxModelWrapper = doc.querySelector("#boxmodel-wrapper");
let boxModelWrapper = doc.querySelector("#old-boxmodel-wrapper");
let searchField = computedView.searchField;
let onRefreshed = inspector.once("computed-view-refreshed");
let win = computedView.styleWindow;

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

@ -50,7 +50,7 @@ function* testClearSearchFilter(inspector, computedView) {
let win = computedView.styleWindow;
let doc = computedView.styleDocument;
let boxModelWrapper = doc.querySelector("#boxmodel-wrapper");
let boxModelWrapper = doc.querySelector("#old-boxmodel-wrapper");
let propertyViews = computedView.propertyViews;
let searchField = computedView.searchField;
let searchClearButton = computedView.searchClearButton;

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

@ -65,7 +65,8 @@ add_task(function* () {
yield onComputedViewReady;
info("Testing the box-model region");
let margin = inspector.panelDoc.querySelector(".boxmodel-margin.boxmodel-top > span");
let margin = inspector.panelDoc.querySelector(
".old-boxmodel-margin.old-boxmodel-top > span");
EventUtils.synthesizeMouseAtCenter(margin, {}, inspector.panelWin);
yield checkTextBox(inspector.panelDoc.activeElement, toolbox);
});