summaryrefslogtreecommitdiffstats
path: root/devtools/client/debugger/test/mochitest/examples/doc-event-handler.html
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/debugger/test/mochitest/examples/doc-event-handler.html')
-rw-r--r--devtools/client/debugger/test/mochitest/examples/doc-event-handler.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/devtools/client/debugger/test/mochitest/examples/doc-event-handler.html b/devtools/client/debugger/test/mochitest/examples/doc-event-handler.html
new file mode 100644
index 0000000000..928f4ef74c
--- /dev/null
+++ b/devtools/client/debugger/test/mochitest/examples/doc-event-handler.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<meta charset=UTF-8>
+<script>
+function synthesizeClick() {
+const elem = document.getElementById("clicky");
+const event = new MouseEvent("click", {});
+elem.dispatchEvent(event);
+}
+</script>
+<span onclick="debugger" id="clicky">click me</span>