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

Unified Diff: chrome/test/chromedriver/window_commands.cc

Issue 34773002: Adding an api to get number of event listeners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding some more files to the patch set. Created 7 years, 2 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
Index: chrome/test/chromedriver/window_commands.cc
diff --git a/chrome/test/chromedriver/window_commands.cc b/chrome/test/chromedriver/window_commands.cc
index d7195f6eb7be4ed63bb43cc944b421b31fcd2de6..290fb599941a0ae38eb87106e7a5aa635e3ffaf7 100644
--- a/chrome/test/chromedriver/window_commands.cc
+++ b/chrome/test/chromedriver/window_commands.cc
@@ -256,6 +256,8 @@ Status ExecuteExecuteScript(
return Status(kUnknownError, "'script' must be a string");
if (script == ":takeHeapSnapshot") {
return web_view->TakeHeapSnapshot(value);
+ } else if (script == ":getEventListenersCount") {
+ return web_view->GetEventListenersCount(value);
} else {
const base::ListValue* args;
if (!params.GetList("args", &args))

Powered by Google App Engine
This is Rietveld 408576698