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

Unified Diff: LayoutTests/inspector/styles/parse-stylesheet-errors.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/parse-stylesheet-errors.html
diff --git a/LayoutTests/inspector/styles/parse-stylesheet-errors.html b/LayoutTests/inspector/styles/parse-stylesheet-errors.html
index 236e46cd019f5f1a2962d72a4e0849ab602016a8..61c6aa1dfea7a00c29ddaade4d5ee96740d2ac31 100644
--- a/LayoutTests/inspector/styles/parse-stylesheet-errors.html
+++ b/LayoutTests/inspector/styles/parse-stylesheet-errors.html
@@ -2,24 +2,19 @@
<head>
<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()
{
WebInspector.showPanel("elements");
- CSSAgent.getAllStyleSheets(headersCallback);
+ InspectorTest.waitForStylesheetsOnFrontend(14, headersCallback);
- function headersCallback(error, headers)
+ function headersCallback(headers)
{
- if (error) {
- InspectorTest.addResult("Error loading stylesheet headers: " + error);
- InspectorTest.completeTest();
- return;
- }
-
for (var i = 0; i < headers.length; ++i)
- CSSAgent.getStyleSheet(headers[i].styleSheetId, styleSheetCallback.bind(null, i === headers.length - 1));
+ CSSAgent.getStyleSheet(headers[i].id, styleSheetCallback.bind(null, i === headers.length - 1));
}
function styleSheetCallback(isLast, error, styleSheet)

Powered by Google App Engine
This is Rietveld 408576698