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

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

Issue 1174683004: Populates sourceDevice attribute into MouseEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase 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.html
diff --git a/LayoutTests/fast/events/uievent-with-inputdevice.html b/LayoutTests/fast/events/uievent-with-inputdevice.html
index d5ef4d67d12af2d22e49541a49af41a1b2e8085f..4bb33861f9e0cc72e0e59f571f30ff5851e8e051 100644
--- a/LayoutTests/fast/events/uievent-with-inputdevice.html
+++ b/LayoutTests/fast/events/uievent-with-inputdevice.html
@@ -17,5 +17,13 @@
var touchevent = document.createEvent("TouchEvent");
shouldBeNonNull("touchevent");
shouldBeNull("touchevent.sourceDevice");
+
+ document.addEventListener("click", function(event) {
tdresser 2015/06/12 13:06:54 The other tests look at mousedown/mousemove/mouseu
lanwei 2015/06/16 21:51:43 Done.
+ shouldBeNonNull("event");
+ shouldBeNull("event.sourceDevice");
+ });
+
+ var e = new MouseEvent('click');
+ document.dispatchEvent(e);
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698