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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/events/constructors/input-event-constructor.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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>InputEvent: Constructor test</title>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 <div id="log"></div>
6 <script>
7 test(function() {
8 assert_throws({name: 'TypeError'},
9 function() { new InputEvent(); },
10 "Construct InputEvent with no argument.");
11 }, "Checks for InputEvent constructor with not enough argument");
12
13 test(function() {
14 var e = new InputEvent('beforeinput');
15 assert_true(e instanceof InputEvent);
16 assert_equals(e.type, 'beforeinput');
17 assert_equals(e.bubbles, false);
18 }, "Checks for InputEvent constructor with one argument");
19
20 test(function() {
21 var e = new InputEvent('input', {'bubbles': true});
22 assert_true(e instanceof InputEvent);
23 assert_equals(e.type, 'input');
24 assert_equals(e.bubbles, true);
25 }, "Checks for InputEvent constructor with full arguments");
26 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/events/inputevents/input-event-event-listener.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698