| Index: LayoutTests/inspector/audits/audits-panel-functional.html
|
| diff --git a/LayoutTests/inspector/audits/audits-panel-functional.html b/LayoutTests/inspector/audits/audits-panel-functional.html
|
| index 8793b9e8aa3f9e117a39efc6753f660d5c1fc3aa..7359e9a5e03a66e01e73da7e92c8d627084f2774 100644
|
| --- a/LayoutTests/inspector/audits/audits-panel-functional.html
|
| +++ b/LayoutTests/inspector/audits/audits-panel-functional.html
|
| @@ -52,18 +52,22 @@ JSON = {};
|
| var test = function()
|
| {
|
| WebInspector.inspectorView.showPanel("audits");
|
| - InspectorTest.reloadPage(step1);
|
| + InspectorTest.reloadPage();
|
| + var pendingStyleSheetsCount = 4;
|
| + InspectorTest.addSniffer(WebInspector.CSSStyleModel.prototype, "_styleSheetAdded", onStyleSheetLoaded, true);
|
|
|
| - function step1()
|
| + function onStyleSheetLoaded()
|
| {
|
| + 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();
|
|
|