зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1333561 - Part 5: Replace the inspector and computed view tests with the correct box model selectors. r=me
This commit is contained in:
Родитель
b0eccb57d9
Коммит
7b223594ba
|
@ -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);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче