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

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: fix testcase extension 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 adbed0c129d093d2cc64e44372130a66a166cb5d..4e839492e2df0501f262fb5ce605a4a3189fb59a 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>
<script>
function test()
@@ -196,18 +197,14 @@ function test()
loadAndDumpStyleSheet.bind(null, 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.bind(null, infos[i].styleSheetId));
+ for (var i = 0; i < styleSheets.length; ++i)
+ loadAndDumpStyleSheet(styleSheets[i].id, (i < styleSheets.length - 1) ? null : patchStyleSheet.bind(null, styleSheets[i].id));
}
- CSSAgent.getAllStyleSheets(styleSheetInfosLoaded);
+ InspectorTest.waitForStylesheetsOnFrontend(4, styleSheetInfosLoaded);
}
function test_changeSelector(styleSheet)
« no previous file with comments | « LayoutTests/inspector/styles/styles-history.html ('k') | LayoutTests/inspector/styles/styles-new-API-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698