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

Unified Diff: LayoutTests/inspector-protocol/css/css-get-platform-fonts.html

Issue 172593003: DevTools: [CSS] Add CSS.editRangeInStyleSheetText() to the protocol (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix glitch Created 6 years, 9 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-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)

Powered by Google App Engine
This is Rietveld 408576698