Chromium Code Reviews| Index: LayoutTests/fast/events/touch/create-touch-event-source-device.html |
| diff --git a/LayoutTests/fast/events/touch/create-touch-event-source-device.html b/LayoutTests/fast/events/touch/create-touch-event-source-device.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..e6c3bb77757e3afd7ffd2ee4f2cd91d2384d30f7 |
| --- /dev/null |
| +++ b/LayoutTests/fast/events/touch/create-touch-event-source-device.html |
| @@ -0,0 +1,35 @@ |
| +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| +<html> |
| +<head> |
| +<script src="../../../resources/js-test.js"></script> |
| +</head> |
| +<body> |
| +<p id="description"></p> |
| +<div id="console"></div> |
| +<script type="text/javascript"> |
| +description('Test that touch events should have a sourceDevice and its firesTouchEvents should be true.'); |
| + |
| +var event = null; |
| + |
| +try |
| +{ |
| + event = document.createEvent("TouchEvent"); |
| + shouldBeNonNull("event"); |
| + shouldBeNonNull("event.sourceDevice"); |
| + shouldBeTrue("event.sourceDevice.firesTouchEvents"); |
|
tdresser
2015/06/03 17:50:39
Should this be true? There isn't really a sourceDe
|
| + |
|
tdresser
2015/06/03 17:50:39
nit: Remove space.
lanwei
2015/06/05 21:33:12
Done.
|
| +} |
| +catch (e) |
| +{ |
| + testFailed("An exception was thrown: " + e.message); |
| +} |
| + |
| +</script> |
| + |
| + |
| + |
| + |
| + |
| + |
| +</body> |
| +</html> |