1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
9 <link rel=
"stylesheet" href=
"resources/audits-style1.css" type=
"text/css">
10 <script>function foo() { }</script>
11 <link rel=
"stylesheet" href=
"resources/audits-style1.css" type=
"text/css">
15 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
16 <script src=
"audits-test.js"></script>
18 <!-- These scripts are needed to result in a violation of the max JS resource count from the same domain -->
19 <script src=
"resources/audits-script1.js"></script>
20 <script src=
"resources/audits-script2.js"></script>
24 InspectorTest
.reloadPage();
25 InspectorTest
.addSniffer(WebInspector
.CSSStyleModel
.prototype, "_styleSheetAdded", onStyleSheetAdded
, true);
27 var pendingStyleSheetsCount
= 5;
28 function onStyleSheetAdded()
30 if (--pendingStyleSheetsCount
)
32 WebInspector
.AuditRuleResult
.resourceDomain = function() {
36 InspectorTest
.launchAllAudits(false, onAuditsFinished
);
39 function onAuditsFinished()
41 InspectorTest
.collectAuditResults(InspectorTest
.completeTest
);
47 <body onload=
"runTest()">
48 Tests audit rules on a page without images.
50 .violation { color: red; }
52 <link rel=
"stylesheet" href=
"resources/audits-style1.css" type=
"text/css">