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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js

Issue 2173233002: [DevTools] Better locations for snippets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-link-to-snippet.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fd341208f6d3b16d4bca85a44704212991392dc1 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 callback;
+ var promise = new Promise((fullfill) => callback = fullfill);
+ InspectorTest.waitUntilMessageReceived(callback);
+ return promise;
+}
+
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 callback;
+ var promise = new Promise((fullfill) => callback = fullfill);
+ InspectorTest.waitUntilNthMessageReceived(count, callback);
+ return promise;
+}
+
InspectorTest.changeExecutionContext = function(namePrefix)
{
var selector = WebInspector.ConsoleView.instance()._executionContextModel._selectElement;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/console/console-link-to-snippet.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698