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

Unified Diff: LayoutTests/fast/events/uievent-with-inputdevice-expected.txt

Issue 1160753005: Implement UIEvent.sourceDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Set sourceDevice to null except uieventinit Created 5 years, 6 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: LayoutTests/fast/events/uievent-with-inputdevice-expected.txt
diff --git a/LayoutTests/fast/events/uievent-with-inputdevice-expected.txt b/LayoutTests/fast/events/uievent-with-inputdevice-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..183313794d441782fbb66f9893643b6cfb06f8ef
--- /dev/null
+++ b/LayoutTests/fast/events/uievent-with-inputdevice-expected.txt
@@ -0,0 +1,15 @@
+This tests that UIEvent will have sourceDevice set to be null by default, and it can also be passed when initialization.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS event is non-null.
+PASS event.sourceDevice is null
+PASS new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouchEvents: false }) }).sourceDevice is non-null.
+PASS new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouchEvents: false }) }).sourceDevice.firesTouchEvents is false
+PASS new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouchEvents: true }) }).sourceDevice is non-null.
+PASS new UIEvent('eventType', { sourceDevice: new InputDevice({ firesTouchEvents: true }) }).sourceDevice.firesTouchEvents is true
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698