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) |