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 c5f964bae989365d8e8f42301721192758eaa41e..58a883fd75ea51ea2b0a842f8c43464d4720c64c 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,22 +183,14 @@ |
} |
} |
- function platformFontsForElementWithSelector(selector) |
- { |
- InspectorTest.requestNodeId(documentNodeId, selector, onNodeId); |
- |
- function onNodeId(nodeId) |
- { |
- InspectorTest.sendCommandOrDie("CSS.getPlatformFontsForNode", |
- { nodeId: nodeId }, |
- onGotComputedFonts); |
- } |
- |
- function onGotComputedFonts(response) |
- { |
- logResults(response); |
- nextTest(); |
- } |
+ 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 logResults(response) |