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

Unified Diff: LayoutTests/inspector/elements/styles/styles-test.js

Issue 201363002: DevTools: defer styles delta calculation to until the end of the task. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 6 years, 9 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/elements/styles/styles-test.js
diff --git a/LayoutTests/inspector/elements/styles/styles-test.js b/LayoutTests/inspector/elements/styles/styles-test.js
index 4483c6cf721f3770a7a126023243976ecf87119c..a0fd9f14f5427df27acd15e90ed7853bb603645c 100644
--- a/LayoutTests/inspector/elements/styles/styles-test.js
+++ b/LayoutTests/inspector/elements/styles/styles-test.js
@@ -3,18 +3,8 @@ function initialize_StylesTests()
InspectorTest.waitForStylesheetsOnFrontend = function(styleSheetsCount, callback)
{
- function styleSheetComparator(a, b)
- {
- if (a.sourceURL < b.sourceURL)
- return -1;
- else if (a.sourceURL > b.sourceURL)
- return 1;
- return a.startLine - b.startLine || a.startColumn - b.startColumn;
- }
-
var styleSheets = WebInspector.cssModel.allStyleSheets();
if (styleSheets.length >= styleSheetsCount) {
- styleSheets.sort(styleSheetComparator);
callback(styleSheets);
return;
}
« no previous file with comments | « LayoutTests/inspector/elements/styles/dynamic-style-tag-expected.txt ('k') | Source/core/inspector/InspectorBaseAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698