Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(930)

Unified Diff: LayoutTests/inspector/styles/styles-new-API.html

Issue 148523012: DevTools: [CSS] remove getAllStylesheets method from protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698