Index: test/inspector/protocol-test.js |
diff --git a/test/inspector/protocol-test.js b/test/inspector/protocol-test.js |
index 52fb4b1d263b76057fcfc25a30587a0c1ea7437c..6b45f1f564a67373b6ff1df60c4e0576a0dc8382 100644 |
--- a/test/inspector/protocol-test.js |
+++ b/test/inspector/protocol-test.js |
@@ -135,6 +135,13 @@ InspectorTest.logObject = function(object, title) |
InspectorTest.completeTest = quit.bind(null); |
+InspectorTest.completeTestAfterPendingTimeouts = function() |
+{ |
+ InspectorTest.sendCommand("Runtime.evaluate", { |
+ expression: "new Promise(resolve => setTimeout(resolve, 0))", |
+ awaitPromise: true }, InspectorTest.completeTest); |
+} |
+ |
InspectorTest.evaluateInPage = function(string, callback) |
{ |
InspectorTest.sendCommand("Runtime.evaluate", { "expression": string }, function(message) { |