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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html b/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html
new file mode 100644
index 0000000000000000000000000000000000000000..24f34a4b457989ba20e43eb6eccb98bc4dbd508c
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/input-events/inputevent-constructor.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<title>InputEvent Constructor Tests</title>
+<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
+<script src="/resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ var e = new InputEvent('type');
+ assert_equals(e.inputType, '');
+ assert_equals(e.data, null);
+ assert_equals(e.dataTransfer, null);
+ assert_false(e.isComposing);
+}, 'Test InputEvent constructor without inputEventInit dictionary');
+
+test(function() {
+ var e = new InputEvent('type', { data: null, isComposing: true });
+ assert_equals(e.data, null, 'inputevent.data should be non null');
+ assert_true(e.isComposing);
+}, 'Test InputEvent construtor with inputEventInit dictionary');
+</script>
« 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