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