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 |
+ |