Reviewed by Eric Seidel.
https://bugs.webkit.org/show_bug.cgi?id=22512
Add a test to check for checks when attaching an event to a document created by
'document.implementation.createDocument'.
* fast/events/create-document-crash-on-attach-event-expected.txt: Added.
* fast/events/create-document-crash-on-attach-event.html: Added.
* fast/events/resources/create-document-crash-on-attach-event.js: Added.
(doc.onload):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@39159
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-12-09 David Levin <levin@chromium.org>
+
+ Reviewed by Eric Seidel.
+
+ https://bugs.webkit.org/show_bug.cgi?id=22512
+
+ Add a test to check for checks when attaching an event to a document created by
+ 'document.implementation.createDocument'.
+
+ * fast/events/create-document-crash-on-attach-event-expected.txt: Added.
+ * fast/events/create-document-crash-on-attach-event.html: Added.
+ * fast/events/resources/create-document-crash-on-attach-event.js: Added.
+ (doc.onload):
+
2008-12-09 David Levin <levin@chromium.org>
Reviewed by Eric Seidel.
--- /dev/null
+This test checks for crashes in setting an event handler on a document element created by document.implementation.createDocument.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS Attached onload event handler to created document.
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="resources/create-document-crash-on-attach-event.js"></script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
--- /dev/null
+description('This test checks for crashes in setting an event handler on a document element created by '
+ + 'document.implementation.createDocument.');
+
+var doc = document.implementation.createDocument('', '', null);
+doc.onload = function() { };
+testPassed('Attached onload event handler to created document.');
+
+var successfullyParsed = true;