mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1237986 - Avoid timeouts when the inspector opens in devtools mochitests; r=miker
This commit is contained in:
parent
fdc7cd2cc5
commit
263a48330e
@ -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>.
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user