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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-data.html

Issue 2570203004: Fix low risk nullable => non nullable change for NavigatorLanguage.language (Closed)
Patch Set: Added layout test for inputevent.data and modified layout test expectation for two input tests 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/fast/events/inputevents/inputevent-data.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-data.html b/third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-data.html
new file mode 100644
index 0000000000000000000000000000000000000000..97ef33cf2a680005e61ee9d6907f090b4ae8af12
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/events/inputevents/inputevent-data.html
@@ -0,0 +1,9 @@
+<!DOCTYPE html>
+<title>InputEvent data should be non nullable</title>
foolip 2016/12/15 10:53:49 This can be upstreamed directly to imported/wpt/in
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<script>
+test(function() {
+ assert_equals(new InputEvent('type', { data: null }).data, "null");
+}, 'InputEvent.data should be non nullable');
+</script>

Powered by Google App Engine
This is Rietveld 408576698