Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Unified Diff: LayoutTests/inspector/audits/audits-panel-functional.html

Issue 483683002: DevTools: fix a few inspector/audits tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/audits/audits-panel-noimages-functional.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/audits/audits-panel-noimages-functional.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698