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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-protocol/resources/protocol-test.html

Issue 2242893004: [DevTools] Don't mark scripts from V8LazyEventListener as internal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments Created 4 years, 4 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-protocol/debugger/step-into-inline-event-handler.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-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 fc3cbd3a0e8771ae6cde90272608ac6041daface..1c1d9eda5b4900bf4b5a7a95dc071af1f96d35cb 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
@@ -83,6 +83,17 @@ InspectorTest.sendCommandPromise = function(method, params)
return promise;
}
+InspectorTest.waitForEventPromise = function(eventName)
+{
+ return new Promise(fulfill => InspectorTest.eventHandler[eventName] = fullfillAndClearListener.bind(null, fulfill));
+
+ function fullfillAndClearListener(fulfill, result)
+ {
+ fulfill(result);
+ delete InspectorTest.eventHandler[eventName];
+ }
+}
+
InspectorTest.domUndo = function(callback)
{
InspectorTest.sendCommandOrDie("DOM.undo", {}, callback);
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/debugger/step-into-inline-event-handler.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698