| Index: LayoutTests/inspector/audits/audits-panel-noimages-functional.html
|
| diff --git a/LayoutTests/inspector/audits/audits-panel-noimages-functional.html b/LayoutTests/inspector/audits/audits-panel-noimages-functional.html
|
| index 25f50a853757a1ab3f9d2dd7c38788b083afb8e2..956539bc0b8249ef08151b30dbf1705520917656 100644
|
| --- a/LayoutTests/inspector/audits/audits-panel-noimages-functional.html
|
| +++ b/LayoutTests/inspector/audits/audits-panel-noimages-functional.html
|
| @@ -22,18 +22,22 @@ JSON = {};
|
| var test = function()
|
| {
|
| WebInspector.inspectorView.showPanel("audits");
|
| - InspectorTest.reloadPage(step1);
|
| + InspectorTest.reloadPage();
|
| + InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "_styleSheetAdded", onStyleSheetAdded, true);
|
|
|
| - function step1()
|
| + var pendingStyleSheetsCount = 5;
|
| + function onStyleSheetAdded()
|
| {
|
| + if (--pendingStyleSheetsCount)
|
| + return;
|
| WebInspector.AuditRuleResult.resourceDomain = function() {
|
| return "[domain]";
|
| };
|
|
|
| - InspectorTest.launchAllAudits(false, step2);
|
| + InspectorTest.launchAllAudits(false, onAuditsFinished);
|
| }
|
|
|
| - function step2()
|
| + function onAuditsFinished()
|
| {
|
| InspectorTest.collectAuditResults();
|
| InspectorTest.completeTest();
|
|
|