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

Unified Diff: LayoutTests/inspector/elements/styles-4/styles-source-offsets.html

Issue 1196193016: DevTools: [CSS] promisify CSS domain (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address comments Created 5 years, 6 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-4/styles-source-offsets.html
diff --git a/LayoutTests/inspector/elements/styles-4/styles-source-offsets.html b/LayoutTests/inspector/elements/styles-4/styles-source-offsets.html
index 1b47cac26e902d5f55b930533656fbaea00019e3..9cfc402e4ad58902b4615166153336682eb877cf 100644
--- a/LayoutTests/inspector/elements/styles-4/styles-source-offsets.html
+++ b/LayoutTests/inspector/elements/styles-4/styles-source-offsets.html
@@ -61,13 +61,15 @@ function test()
return;
}
resultStyles.matchedCSSRules = matchedCSSRules;
- step2();
}
function step1(node)
{
- InspectorTest.CSSAgent.getInlineStylesForNode(node.id, inlineCallback);
- InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, matchedCallback);
+ var promises = [
+ InspectorTest.CSSAgent.getInlineStylesForNode(node.id, inlineCallback),
+ InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, matchedCallback)
+ ];
+ Promise.all(promises).then(step2);
}
function step2()

Powered by Google App Engine
This is Rietveld 408576698