summaryrefslogtreecommitdiffstats
path: root/chrome/browser/debugger/manual_tests
diff options
context:
space:
mode:
authorapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 18:31:56 +0000
committerapavlov@chromium.org <apavlov@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-16 18:31:56 +0000
commit791c6b8825282428cb0a769ba92f65813c12a552 (patch)
tree07b8d13cfb5afbde580b6e58260e993a383c16c0 /chrome/browser/debugger/manual_tests
parentce5a024699cc727d80fedc9d6de93add6f0d736b (diff)
downloadchromium_src-791c6b8825282428cb0a769ba92f65813c12a552.zip
chromium_src-791c6b8825282428cb0a769ba92f65813c12a552.tar.gz
chromium_src-791c6b8825282428cb0a769ba92f65813c12a552.tar.bz2
Add Event Listeners sidebar pane manual test
Review URL: http://codereview.chromium.org/391074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32066 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/manual_tests')
-rw-r--r--chrome/browser/debugger/manual_tests/event-listeners.html30
1 files changed, 30 insertions, 0 deletions
diff --git a/chrome/browser/debugger/manual_tests/event-listeners.html b/chrome/browser/debugger/manual_tests/event-listeners.html
new file mode 100644
index 0000000..4dff96d
--- /dev/null
+++ b/chrome/browser/debugger/manual_tests/event-listeners.html
@@ -0,0 +1,30 @@
+<head>
+ <script>
+ function attachListener() {
+ document.getElementById("target").addEventListener("click", listenerFunction, true);
+ document.getElementById("targetParent").addEventListener("click", listenerFunctionParent, true);
+ }
+ function listenerFunctionParent(event) {
+ event.target.textContent = "event handled";
+ }
+ function listenerFunction(event) {
+ event.target.textContent = "event handled";
+ }
+ </script>
+</head>
+<body onload="attachListener()">
+<div id="targetParent">
+ <div id="target"></div>
+</div>
+<p>To begin test, open DevTools, select the Elements panel. Expand the Event Listeners
+pane in the sidebar.
+<ul>
+ <li>Choose the <b>&lt;div id="targetParent"...></b> element.
+You should see the "click" section in the Event Listeners pane. Expand the section to see
+the "listenerFunctionParent" function (at "div#targetParent") under it.
+ <li>Expand the targetParent node in the tree and choose the <b>&lt;div id="target"...></b>
+element. You should see the "click" section in the Event Listeners pane. Expand the section
+to see two functions, "listenerFunctionParent" (at "div#targetParent") and
+"listenerFunction" (at "div#target") under it.
+</ul>
+</body>