1 description = "This tests whether the DOM can create TouchEvents."; 2 3 debug(description); 4 5 var event = null; 6 7 try 8 { 9 event = document.createEvent("TouchEvent"); 10 shouldBeNonNull("event"); 11 } 12 catch (e) 13 { 14 testFailed("An exception was thrown: " + e.message); 15 } 16 17 successfullyParsed = true; 18