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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html

Issue 2572053002: DevTools: kill SDK.CSSParser (Closed)
Patch Set: address comments Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html
index 1590dd8a6a555eb066a5cc31f7a5b06fdf2495dc..91db7b90e0b0d8622ff6fa4271016a4dd871a841 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-1/css-outline.html
@@ -60,17 +60,17 @@ function getCSS()
function test()
{
- function onStyleSheetParsed(rules)
+ function onRulesParsed(isLastChunk, rules)
{
for (var i = 0; i < rules.length; ++i)
InspectorTest.addObject(rules[i]);
- InspectorTest.completeTest();
+ if (isLastChunk)
+ InspectorTest.completeTest();
}
function onStyleFetched(result)
{
- var parser = new SDK.CSSParser();
- parser.parse(result.value, onStyleSheetParsed);
+ Common.formatterWorkerPool.parseCSS(result.value, onRulesParsed);
}
InspectorTest.evaluateInPage("getCSS()", onStyleFetched);
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698