OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 | 3 |
4 <link rel="stylesheet" href="resources/styles-history.css"> | 4 <link rel="stylesheet" href="resources/styles-history.css"> |
5 | 5 |
6 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
7 <script src="../../../http/tests/inspector/elements-test.js"></script> | 7 <script src="../../../http/tests/inspector/elements-test.js"></script> |
8 <script src="../../../http/tests/inspector/resources-test.js"></script> | 8 <script src="../../../http/tests/inspector/resources-test.js"></script> |
9 <script src="styles-test.js"></script> | 9 <script src="styles-test.js"></script> |
10 <script> | 10 <script> |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 { | 96 { |
97 if (error) { | 97 if (error) { |
98 InspectorTest.addResult("error: " + error); | 98 InspectorTest.addResult("error: " + error); |
99 InspectorTest.completeTest(); | 99 InspectorTest.completeTest(); |
100 return; | 100 return; |
101 } | 101 } |
102 for (var i = 0; i < matchedStyles.length; ++i) { | 102 for (var i = 0; i < matchedStyles.length; ++i) { |
103 var rule = matchedStyles[i].rule; | 103 var rule = matchedStyles[i].rule; |
104 if (rule.origin !== "regular") | 104 if (rule.origin !== "regular") |
105 continue; | 105 continue; |
106 callback(WebInspector.CSSStyleDeclaration.parsePayload(WebInspec
tor.cssModel, rule.style)); | 106 callback(WebInspector.CSSStyleDeclaration.parsePayload(Inspector
Test.cssModel, rule.style)); |
107 return; | 107 return; |
108 } | 108 } |
109 InspectorTest.addResult("error: did not find any regular rule"); | 109 InspectorTest.addResult("error: did not find any regular rule"); |
110 InspectorTest.completeTest(); | 110 InspectorTest.completeTest(); |
111 } | 111 } |
112 } | 112 } |
113 | 113 |
114 function dumpHistory(next) | 114 function dumpHistory(next) |
115 { | 115 { |
116 function result() | 116 function result() |
(...skipping 11 matching lines...) Expand all Loading... |
128 | 128 |
129 </script> | 129 </script> |
130 </head> | 130 </head> |
131 | 131 |
132 <body id="mainBody" onload="runTest()"> | 132 <body id="mainBody" onload="runTest()"> |
133 <p> | 133 <p> |
134 Tests resources panel history. | 134 Tests resources panel history. |
135 </p> | 135 </p> |
136 </body> | 136 </body> |
137 </html> | 137 </html> |
OLD | NEW |