| 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> |
| 11 | 11 |
| 12 function test() | 12 function test() |
| 13 { | 13 { |
| 14 InspectorTest.runAfterCachedResourcesProcessed(runTestSuite); | 14 InspectorTest.runAfterCachedResourcesProcessed(runTestSuite); |
| 15 | 15 |
| 16 var uiSourceCode; | 16 var uiSourceCode; |
| 17 | 17 |
| 18 function runTestSuite() | 18 function runTestSuite() |
| 19 { | 19 { |
| 20 InspectorTest.runTestSuite([ | 20 InspectorTest.runTestSuite([ |
| 21 function testSetUp(next) | 21 function testSetUp(next) |
| 22 { | 22 { |
| 23 function visitUISourceCodes(currentUISourceCode) | 23 function visitUISourceCodes(currentUISourceCode) |
| 24 { | 24 { |
| 25 if (currentUISourceCode.originURL().indexOf("styles-history.
css") === -1) | 25 if (currentUISourceCode.url().indexOf("styles-history.css")
=== -1) |
| 26 return; | 26 return; |
| 27 uiSourceCode = currentUISourceCode; | 27 uiSourceCode = currentUISourceCode; |
| 28 next(); | 28 next(); |
| 29 } | 29 } |
| 30 WebInspector.workspace.uiSourceCodes().forEach(visitUISourceCode
s); | 30 WebInspector.workspace.uiSourceCodes().forEach(visitUISourceCode
s); |
| 31 }, | 31 }, |
| 32 | 32 |
| 33 function testSetResourceContentMinor(next) | 33 function testSetResourceContentMinor(next) |
| 34 { | 34 { |
| 35 InspectorTest.addSniffer(WebInspector.StyleFile.prototype, "_sty
leContentSet", styleUpdatedMinor); | 35 InspectorTest.addSniffer(WebInspector.StyleFile.prototype, "_sty
leContentSet", styleUpdatedMinor); |
| (...skipping 103 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 |