| Index: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| index 294f51c5beb4d40164ce7cc8013fc8abc2522d31..32cd8cd77b2410988df659b1a1d49cba6ab82e43 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| @@ -368,6 +368,14 @@ InspectorTest.waitUntilMessageReceived = function(callback)
|
| InspectorTest.addSniffer(InspectorTest.consoleModel, "addMessage", callback, false);
|
| }
|
|
|
| +InspectorTest.waitUntilMessageReceivedPromise = function()
|
| +{
|
| + var cb;
|
| + var p = new Promise((f) => cb = f);
|
| + InspectorTest.waitUntilMessageReceived(cb);
|
| + return p;
|
| +}
|
| +
|
| InspectorTest.waitUntilNthMessageReceived = function(count, callback)
|
| {
|
| function override()
|
| @@ -380,6 +388,14 @@ InspectorTest.waitUntilNthMessageReceived = function(count, callback)
|
| InspectorTest.addSniffer(InspectorTest.consoleModel, "addMessage", override, false);
|
| }
|
|
|
| +InspectorTest.waitUntilNthMessageReceivedPromise = function(count)
|
| +{
|
| + var cb;
|
| + var p = new Promise((f) => cb = f);
|
| + InspectorTest.waitUntilNthMessageReceived(count, cb);
|
| + return p;
|
| +}
|
| +
|
| InspectorTest.changeExecutionContext = function(namePrefix)
|
| {
|
| var selector = WebInspector.ConsoleView.instance()._executionContextModel._selectElement;
|
|
|