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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html

Issue 1682683002: [InputEvent] Add InputEvent with basic interface behind a flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 10 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: third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html b/third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html
new file mode 100644
index 0000000000000000000000000000000000000000..0b3cc4e2598edcb919f48e5d72e3f01dbfac66f7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>InputEvent: Event Listener test</title>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<input type="text" id="txt">
+
+<script>
+async_test(function() {
+ var txt = document.getElementById('txt');
+ txt.addEventListener('input', this.step_func_done(function(e) {
+ assert_true(e instanceof InputEvent);
+ assert_equals(e.type, 'input');
+ assert_equals(e.bubbles, true);
+ }));
+ if (!window.eventSender) {
+ document.write('This test requires eventSender');
+ } else {
+ txt.focus();
+ eventSender.keyDown('a');
+ }
+}, "Testing input event listener");
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698