chromium/third_party/blink/web_tests/fast/events/touch/resources/create-touch-event.js

description = "This tests whether the DOM can create TouchEvents.";

debug(description);

var event = null;

try
{
    event = document.createEvent("TouchEvent");
    shouldBeNonNull("event");
}
catch (e)
{
    testFailed("An exception was thrown: " + e.message);
}