Bug 1223368 - Followup: fix browser_inspector_search-01/06.js failures on a CLOSED TREE. r=me

This commit is contained in:
Tim Nguyen 2019-05-11 21:00:17 +02:00
Родитель c5c77834f5
Коммит f6fb609705
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -87,8 +87,8 @@ add_task(async function() {
is(inspector.selection.nodeFront, nodeFront,
"Correct node is selected for state " + index);
is(!searchBox.classList.contains("devtools-searchbox-no-match"), isValid,
"Correct searchbox result state for state " + index);
is(!searchBox.parentNode.classList.contains("devtools-searchbox-no-match"),
isValid, "Correct searchbox result state for state " + index);
index++;
}

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

@ -75,7 +75,7 @@ async function synthesizeKeys(keys, inspector) {
}
function assertHasResult(inspector, expectResult) {
is(inspector.searchBox.classList.contains("devtools-style-searchbox-no-match"),
is(inspector.searchBox.parentNode.classList.contains("devtools-searchbox-no-match"),
!expectResult,
"There are" + (expectResult ? "" : " no") + " search results");
}