| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <link rel="stylesheet" href="../styles/resources/styles-history.css"> | 4 <link rel="stylesheet" href="../styles/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/styles-test.js"></script> | 9 <script src="../styles/styles-test.js"></script> |
| 10 <script> | 10 <script> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 function styleSheetForResource(callback) | 86 function styleSheetForResource(callback) |
| 87 { | 87 { |
| 88 InspectorTest.nodeWithId("mainBody", onNodeSelected); | 88 InspectorTest.nodeWithId("mainBody", onNodeSelected); |
| 89 | 89 |
| 90 function onNodeSelected(node) | 90 function onNodeSelected(node) |
| 91 { | 91 { |
| 92 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onMatchedSty
lesForNode); | 92 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, onMatchedSty
lesForNode); |
| 93 } | 93 } |
| 94 | 94 |
| 95 function onMatchedStylesForNode(error, matchedStyles) | 95 function onMatchedStylesForNode(error, inlineStyle, attributeStyle, matc
hedStyles) |
| 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; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 </script> | 140 </script> |
| 141 </head> | 141 </head> |
| 142 | 142 |
| 143 <body id="mainBody" onload="runTest()"> | 143 <body id="mainBody" onload="runTest()"> |
| 144 <p> | 144 <p> |
| 145 Tests resources panel history. | 145 Tests resources panel history. |
| 146 </p> | 146 </p> |
| 147 </body> | 147 </body> |
| 148 </html> | 148 </html> |
| OLD | NEW |