Bug 1237986 - Avoid timeouts when the inspector opens in devtools mochitests; r=miker

This commit is contained in:
Patrick Brosset 2016-02-01 17:06:53 +01:00
parent fdc7cd2cc5
commit 263a48330e
2 changed files with 5 additions and 3 deletions

View File

@ -16,11 +16,11 @@ add_task(function*() {
// Insert a new property, which will affect the line numbers.
let elementRuleEditor = getRuleViewRuleEditor(view, 1);
let onRuleViewChanged = view.once("ruleview-changed");
yield createNewRuleViewProperty(elementRuleEditor, "font-size: 72px");
yield onRuleViewChanged;
let onRefresh = view.once("ruleview-refreshed");
yield selectNode("#inner", inspector);
yield onRefresh;
let value = getRuleViewLinkTextByIndex(view, 3);
// Note that this is relative to the <style>.

View File

@ -146,7 +146,9 @@ var openInspector = Task.async(function*(hostType) {
let inspector = toolbox.getPanel("inspector");
info("Waiting for the inspector to update");
yield inspector.once("inspector-updated");
if (inspector._updateProgress) {
yield inspector.once("inspector-updated");
}
yield registerTestActor(toolbox.target.client);
let testActor = yield getTestActor(toolbox);