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

Unified Diff: LayoutTests/fast/events/constructors/input-device-constructor.html

Issue 1157173003: Impelement InputDevice.firesTouchEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Put behind RuntimeEnabledFeature Created 5 years, 7 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/constructors/input-device-constructor.html
diff --git a/LayoutTests/fast/events/constructors/input-device-constructor.html b/LayoutTests/fast/events/constructors/input-device-constructor.html
new file mode 100644
index 0000000000000000000000000000000000000000..0c28583b32b88ae4ca22ddf6c19ab704d216d297
--- /dev/null
+++ b/LayoutTests/fast/events/constructors/input-device-constructor.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../../../resources/js-test.js"></script>
+</head>
+<body>
+<script>
+description("This tests the constructor for the InputDevice DOM class.");
+
+shouldBe("new InputDevice().firesTouchEvents", "false");
+shouldBe("new InputDevice({ firesTouchEvents: true }).firesTouchEvents", "true");
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698