| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 /* Empty stylesheet */ | 5 /* Empty stylesheet */ |
| 6 </style> | 6 </style> |
| 7 <script src="../../http/tests/inspector/inspector-test.js"></script> | 7 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 8 <script src="audits-test.js"></script> | 8 <script src="audits-test.js"></script> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| 11 function test() | 11 function test() |
| 12 { | 12 { |
| 13 InspectorTest.reloadPage(step1); | 13 InspectorTest.reloadPage(step1); |
| 14 | 14 |
| 15 function step1() | 15 function step1() |
| 16 { | 16 { |
| 17 WebInspector.AuditRuleResult.resourceDomain = function() { | 17 Audits.AuditRuleResult.resourceDomain = function() { |
| 18 return "[domain]"; | 18 return "[domain]"; |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 InspectorTest.launchAllAudits(false, step2); | 21 InspectorTest.launchAllAudits(false, step2); |
| 22 } | 22 } |
| 23 | 23 |
| 24 function step2() | 24 function step2() |
| 25 { | 25 { |
| 26 InspectorTest.collectAuditResults(InspectorTest.completeTest); | 26 InspectorTest.collectAuditResults(InspectorTest.completeTest); |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 </script> | 29 </script> |
| 30 </head> | 30 </head> |
| 31 | 31 |
| 32 <body onload="runTest()"> | 32 <body onload="runTest()"> |
| 33 <p>Tests running audits with a single empty stylesheet.</p> | 33 <p>Tests running audits with a single empty stylesheet.</p> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |