Chromium Code Reviews| Index: LayoutTests/inspector/styles/styles-new-API.html |
| diff --git a/LayoutTests/inspector/styles/styles-new-API.html b/LayoutTests/inspector/styles/styles-new-API.html |
| index 9a0f4574a7f90450b18524061635e0f068d119c8..3220d2e6b86ae737f012a458db6a4356df1ef3a6 100644 |
| --- a/LayoutTests/inspector/styles/styles-new-API.html |
| +++ b/LayoutTests/inspector/styles/styles-new-API.html |
| @@ -5,6 +5,7 @@ |
| <script src="../../http/tests/inspector/inspector-test.js"></script> |
| <script src="../../http/tests/inspector/elements-test.js"></script> |
| +<script src="./styles-test.js"></script> |
|
apavlov
2014/01/29 14:08:57
"./styles-test.js" -> "styles-test.js" will make s
lushnikov
2014/01/29 18:21:46
Done.
|
| <script> |
| function test() |
| @@ -196,18 +197,14 @@ function test() |
| loadAndDumpStyleSheet.bind(null, styleSheet.styleSheetId, test_changeSelector)); |
| } |
| - function styleSheetInfosLoaded(error, infos) |
| + function styleSheetInfosLoaded(styleSheets) |
| { |
| - if (error) { |
| - InspectorTest.addResult("error: " + error); |
| - return; |
| - } |
| InspectorTest.addResult(""); |
| InspectorTest.addResult("=== All stylesheets ==="); |
| - for (var i = 0; i < infos.length; ++i) |
| - loadAndDumpStyleSheet(infos[i].styleSheetId, (i < infos.length - 1) ? null : patchStyleSheet); |
| + for (var i = 0; i < styleSheets.length; ++i) |
| + loadAndDumpStyleSheet(styleSheets[i].id, (i < styleSheets.length - 1) ? null : patchStyleSheet); |
| } |
| - CSSAgent.getAllStyleSheets(styleSheetInfosLoaded); |
| + InspectorTest.waitForStylesheetsOnFrontend(4, styleSheetInfosLoaded); |
| } |
| function test_changeSelector(styleSheet) |