upload tizen1.0 source
[framework/web/webkit-efl.git] / LayoutTests / inspector / audits / audits-panel-functional.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <style>
5 .unused {
6     color: green;
7 }
8 </style>
9 <script>
10 JSON = {};
11 </script>
12 <script src="../../http/tests/inspector/inspector-test.js"></script>
13 <script src="audits-test.js"></script>
14
15 <!-- These scripts are needed to result in a violation of the max JS resource count from the same domain -->
16 <script src="resources/audits-script1.js"></script>
17 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css">
18 <script src="resources/audits-script2.js"></script>
19 <script>
20 var test = function()
21 {
22     InspectorTest.reloadPage(step1);
23
24     function step1()
25     {
26         WebInspector.AuditRuleResult.resourceDomain = function() {
27             return "[domain]";
28         };
29
30         var launcherView = WebInspector.panels.audits._launcherView;
31         launcherView._selectAllClicked(true);
32         launcherView._auditPresentStateElement.checked = true;
33         launcherView._launchButtonClicked();
34
35         InspectorTest.runAfterPendingDispatches(step2);
36     }
37
38     function step2()
39     {
40         InspectorTest.collectAuditResults();
41         InspectorTest.completeTest();
42     }
43 }
44 </script>
45 </head>
46
47 <body onload="runTest()">
48 Tests audit rules.
49 <style>
50 .violation { color: red; }
51 </style>
52 <link rel="stylesheet" href="resources/audits-style1.css" type="text/css">
53 <img src="foo1.jpg">
54 <img src="foo2.jpg" width=100>
55 <img src="foo3.jpg" style="position: absolute">
56 <img src="foo4.jpg" style="width: 16px; height: 16px">
57
58 </body>
59 </html>