Javascript  |  18行  |  294 B

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);
}

successfullyParsed = true;