| 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 .unused { | 5 .unused { |
| 6 color: green; | 6 color: green; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 <script src="../../http/tests/inspector/inspector-test.js"></script> | 9 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 10 <script src="audits-test.js"></script> | 10 <script src="audits-test.js"></script> |
| 11 | 11 |
| 12 <!-- These scripts are needed to result in a violation of the max JS resource co
unt from the same domain --> | 12 <!-- These scripts are needed to result in a violation of the max JS resource co
unt from the same domain --> |
| 13 <script src="resources/audits-script1.js"></script> | 13 <script src="resources/audits-script1.js"></script> |
| 14 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css"> | 14 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css"> |
| 15 <script src="resources/audits-script2.js"></script> | 15 <script src="resources/audits-script2.js"></script> |
| 16 <script> | 16 <script> |
| 17 var test = function() | 17 var test = function() |
| 18 { | 18 { |
| 19 WebInspector.showPanel("elements"); | |
| 20 | |
| 21 InspectorTest.reloadPage(step1); | 19 InspectorTest.reloadPage(step1); |
| 22 | 20 |
| 23 function step1() | 21 function step1() |
| 24 { | 22 { |
| 25 WebInspector.AuditRuleResult.resourceDomain = function() { | 23 WebInspector.AuditRuleResult.resourceDomain = function() { |
| 26 return "[domain]"; | 24 return "[domain]"; |
| 27 }; | 25 }; |
| 28 | 26 |
| 29 var launcherView = WebInspector.panels.audits._launcherView; | 27 var launcherView = WebInspector.panels.audits._launcherView; |
| 30 launcherView._selectAllClicked(true); | 28 launcherView._selectAllClicked(true); |
| (...skipping 18 matching lines...) Expand all Loading... |
| 49 .violation { color: red; } | 47 .violation { color: red; } |
| 50 </style> | 48 </style> |
| 51 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css"> | 49 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css"> |
| 52 <img src="foo1.jpg"> | 50 <img src="foo1.jpg"> |
| 53 <img src="foo2.jpg" width=100> | 51 <img src="foo2.jpg" width=100> |
| 54 <img src="foo3.jpg" style="position: absolute"> | 52 <img src="foo3.jpg" style="position: absolute"> |
| 55 <img src="foo4.jpg" style="width: 16px; height: 16px"> | 53 <img src="foo4.jpg" style="width: 16px; height: 16px"> |
| 56 | 54 |
| 57 </body> | 55 </body> |
| 58 </html> | 56 </html> |
| OLD | NEW |