| Index: LayoutTests/inspector-protocol/css/css-get-platform-fonts.html
|
| diff --git a/LayoutTests/inspector-protocol/css/css-get-platform-fonts.html b/LayoutTests/inspector-protocol/css/css-get-platform-fonts.html
|
| index 9b9c98ef2bfea0d98e2be9a15b3ecf60f43288c0..65a772cc7577d788c66afcaefbc74059ac9ed11e 100644
|
| --- a/LayoutTests/inspector-protocol/css/css-get-platform-fonts.html
|
| +++ b/LayoutTests/inspector-protocol/css/css-get-platform-fonts.html
|
| @@ -5,29 +5,17 @@
|
|
|
| function test()
|
| {
|
| - function sendCommand(command, properties, callback) {
|
| - InspectorTest.sendCommand(command, properties || {}, commandCallback);
|
| - function commandCallback(msg)
|
| - {
|
| - if (msg.error) {
|
| - InspectorTest.log(msg.error.message);
|
| - InspectorTest.completeTest();
|
| - return;
|
| - }
|
| - callback(msg.result);
|
| - }
|
| - }
|
| - sendCommand("DOM.getDocument", {}, onGotDocument);
|
| + InspectorTest.sendCommandOrDie("DOM.getDocument", {}, onGotDocument);
|
|
|
| function onGotDocument(result)
|
| {
|
| var root = result.root;
|
| - sendCommand("DOM.querySelector", { "nodeId": root.nodeId , "selector": "#fancy" }, onGotNode);
|
| + InspectorTest.sendCommandOrDie("DOM.querySelector", { "nodeId": root.nodeId , "selector": "#fancy" }, onGotNode);
|
| }
|
|
|
| function onGotNode(node)
|
| {
|
| - sendCommand("CSS.getPlatformFontsForNode", { "nodeId": node.nodeId }, onGotComputedFonts);
|
| + InspectorTest.sendCommandOrDie("CSS.getPlatformFontsForNode", { "nodeId": node.nodeId }, onGotComputedFonts);
|
| }
|
|
|
| function onGotComputedFonts(response)
|
|
|