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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html

Issue 2570203004: Fix low risk nullable => non nullable change for NavigatorLanguage.language (Closed)
Patch Set: Revert InputEvent Created 4 years 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <title>InputEvent Constructor Tests</title>
3 <script src="/resources/testharness.js"></script>
dtapuska 2016/12/15 17:00:03 Shouldn't imported tests first be added to the git
foolip 2016/12/15 22:43:33 Until now, yes, but https://crbug.com/657117 is ab
4 <script src="/resources/testharnessreport.js"></script>
5 <script>
6 test(function() {
7 var e = new InputEvent('type');
8 assert_equals(e.inputType, '');
9 assert_equals(e.data, null);
10 assert_equals(e.dataTransfer, null);
11 assert_false(e.isComposing);
12 }, 'Test InputEvent constructor without inputEventInit dictionary');
13
14 test(function() {
15 var e = new InputEvent('type', { data: null, isComposing: true });
16 assert_equals(e.data, null, 'inputevent.data should be non null');
17 assert_true(e.isComposing);
18 }, 'Test InputEvent construtor with inputEventInit dictionary');
19 </script>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/W3CImportExpectations ('k') | third_party/WebKit/Source/core/frame/NavigatorLanguage.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698