aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html/test_focus.html
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-10-04 10:31:47 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-11-13 11:27:15 -0500
commit84bc17e7ad99d11ff416f2126acb2031b680dc19 (patch)
tree079ce73016a83dc75176aa8c98de3131821c2295 /tests/html/test_focus.html
parent329ba56fca3bd3808a37aae6bc3ed3c5a5d23524 (diff)
downloadservo-84bc17e7ad99d11ff416f2126acb2031b680dc19.tar.gz
servo-84bc17e7ad99d11ff416f2126acb2031b680dc19.zip
Implement document focus context and hook it up to click events.
Diffstat (limited to 'tests/html/test_focus.html')
-rw-r--r--tests/html/test_focus.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/html/test_focus.html b/tests/html/test_focus.html
new file mode 100644
index 00000000000..967030b2a78
--- /dev/null
+++ b/tests/html/test_focus.html
@@ -0,0 +1,7 @@
+<body>
+<input id="focused">
+<script>
+ document.body.addEventListener('keydown', function() { alert("body"); }, false);
+ document.getElementById('focused').addEventListener('keydown', function() { alert("input"); }, false);
+</script>
+</body>