Index: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
index 1a9533ddc67a16f246b6b4663274f43f8b8ddce7..98b96f7b638d971ebb8728b16f095a2283147439 100644 |
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html |
@@ -75,6 +75,14 @@ InspectorTest.sendCommandOrDie = function(command, properties, callback) |
} |
} |
+InspectorTest.sendCommandPromise = function(method, params) |
+{ |
+ var callback; |
+ var promise = new Promise(fulfill => callback = fulfill); |
+ InspectorTest.sendCommand(method, params, callback); |
+ return promise; |
+} |
+ |
InspectorTest.domUndo = function(callback) |
{ |
InspectorTest.sendCommandOrDie("DOM.undo", {}, callback); |