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
parent 6d2e123f8f
commit bb69a89b03

View File

@ -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);