Commit 785f55c4 authored by pam@chromium.org's avatar pam@chromium.org

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):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@39159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1c87b8bd
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.
......
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
<!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>
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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment