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

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

Issue 1268353005: [DevTools] Support JQuery event listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
Index: LayoutTests/http/tests/inspector/inspector-test.js
diff --git a/LayoutTests/http/tests/inspector/inspector-test.js b/LayoutTests/http/tests/inspector/inspector-test.js
index 95e178d91df73af69c1fbdba3855ee057927560a..d8ec7c3376c48cc6c047282948284321555d8964 100644
--- a/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/LayoutTests/http/tests/inspector/inspector-test.js
@@ -345,6 +345,25 @@ InspectorTest.dumpDataGridIntoString = function(dataGrid)
return output.join("\n");
}
+InspectorTest.dumpEventListeners = function(next, listeners)
+{
+ for (var i = 0; i < listeners.length; ++i) {
+ delete listeners[i]._location.scriptId;
+ var sourceName = listeners[i]._sourceName;
+ sourceName = sourceName.substr(sourceName.lastIndexOf('/') + 1);
+ listeners[i]._sourceName = sourceName;
+
+ InspectorTest.addResult("type: " + listeners[i].type());
+ InspectorTest.addResult("useCapture: " + listeners[i].useCapture());
+ InspectorTest.addResult("location: " + listeners[i].location().columnNumber + ", " + listeners[i].location().lineNumber);
+ InspectorTest.addResult("handler: " + listeners[i].handler().description);
+ InspectorTest.addResult("handlerType: " + listeners[i].handlerType());
+ InspectorTest.addResult("sourceName: " + listeners[i].sourceName());
+ InspectorTest.addResult("");
+ }
+ next();
+}
+
InspectorTest.assertGreaterOrEqual = function(a, b, message)
{
if (a < b)

Powered by Google App Engine
This is Rietveld 408576698