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

Unified Diff: third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js

Issue 2916283002: Revert of DevTools: require enabling CSS domain before running CSS.* commands. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js
diff --git a/third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js b/third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js
index 58a883fd75ea51ea2b0a842f8c43464d4720c64c..c5f964bae989365d8e8f42301721192758eaa41e 100644
--- a/third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js
+++ b/third_party/WebKit/LayoutTests/css3/fonts/resources/style-matching-test.js
@@ -183,14 +183,22 @@
}
}
- async function platformFontsForElementWithSelector(selector)
- {
- var nodeId = await InspectorTest.requestNodeId(documentNodeId, selector);
- await InspectorTest.sendCommandOrDie("CSS.enable", {});
- var response = await InspectorTest.sendCommandOrDie("CSS.getPlatformFontsForNode",
- { nodeId: nodeId });
- logResults(response);
- nextTest();
+ function platformFontsForElementWithSelector(selector)
+ {
+ InspectorTest.requestNodeId(documentNodeId, selector, onNodeId);
+
+ function onNodeId(nodeId)
+ {
+ InspectorTest.sendCommandOrDie("CSS.getPlatformFontsForNode",
+ { nodeId: nodeId },
+ onGotComputedFonts);
+ }
+
+ function onGotComputedFonts(response)
+ {
+ logResults(response);
+ nextTest();
+ }
}
function logResults(response)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector-protocol/dom-protocol-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698