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

Unified Diff: LayoutTests/inspector/styles/set-property-boundaries.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/set-property-boundaries.html
diff --git a/LayoutTests/inspector/styles/set-property-boundaries.html b/LayoutTests/inspector/styles/set-property-boundaries.html
index d56a15e445516a429951b25adb81497e0cf26c88..c94eb0e72d11805ffc9ff5d0b0176c54f06887c5 100644
--- a/LayoutTests/inspector/styles/set-property-boundaries.html
+++ b/LayoutTests/inspector/styles/set-property-boundaries.html
@@ -9,23 +9,18 @@ h1 {
<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(styleSheetInfosLoaded);
+ InspectorTest.waitForStylesheetsOnFrontend(1, styleSheetInfosLoaded);
- function styleSheetInfosLoaded(error, infos)
+ function styleSheetInfosLoaded(styleSheets)
{
- if (error) {
- InspectorTest.addResult("error: " + error);
- InspectorTest.completeTest();
- return;
- }
-
- for (var i = 0; i < infos.length; ++i)
- CSSAgent.getStyleSheet(infos[i].styleSheetId, styleSheetLoaded);
+ for (var i = 0; i < styleSheets.length; ++i)
+ CSSAgent.getStyleSheet(styleSheets[i].id, styleSheetLoaded);
}
function styleSheetLoaded(error, styleSheet)
« no previous file with comments | « LayoutTests/inspector/styles/parse-stylesheet-errors.html ('k') | LayoutTests/inspector/styles/styles-history.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698