Bug 1074836 - 6 - Fix the inspector search field test with e10s; r=jwalker

This commit is contained in:
Patrick Brosset 2015-02-09 10:03:06 +01:00
Родитель 306859f127
Коммит 155f70201e
1 изменённых файлов: 4 добавлений и 2 удалений

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

@ -70,10 +70,12 @@ add_task(function* () {
info("Got " + event + " event. Waiting for search query to complete");
yield inspector.searchSuggestions._lastQuery;
info(inspector.selection.node.id + " is selected with text " +
info(inspector.selection.nodeFront.id + " is selected with text " +
searchBox.value);
is(inspector.selection.node, content.document.getElementById(id),
let nodeFront = yield getNodeFront("#" + id, inspector);
is(inspector.selection.nodeFront, nodeFront,
"Correct node is selected for state " + index);
is(!searchBox.classList.contains("devtools-no-search-result"), isValid,
"Correct searchbox result state for state " + index);