Reviewed by Adam Roben.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 08:26:21 +0000 (08:26 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 08:26:21 +0000 (08:26 +0000)
        - adding a test for http://bugs.webkit.org/show_bug.cgi?id=16097

        * fast/dom/ImageDocument-image-deletion-expected.txt: Added.
        * fast/dom/ImageDocument-image-deletion.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28436 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/ImageDocument-image-deletion-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/ImageDocument-image-deletion.html [new file with mode: 0644]

index 4cdb041ccc946b76528557945303e6d911f885b3..ea0eac9a0047da0945a6dd5d83e36df0baa9b913 100644 (file)
@@ -1,3 +1,12 @@
+2007-12-05  Dan Bernstein  <mitz@apple.com>
+
+        Reviewed by Adam Roben.
+
+        - adding a test for http://bugs.webkit.org/show_bug.cgi?id=16097
+
+        * fast/dom/ImageDocument-image-deletion-expected.txt: Added.
+        * fast/dom/ImageDocument-image-deletion.html: Added.
+
 2007-12-04  Adele Peterson  <adele@apple.com>
 
         Reviewed by Darin.
diff --git a/LayoutTests/fast/dom/ImageDocument-image-deletion-expected.txt b/LayoutTests/fast/dom/ImageDocument-image-deletion-expected.txt
new file mode 100644 (file)
index 0000000..969daa9
--- /dev/null
@@ -0,0 +1,5 @@
+Test for http://bugs.webkit.org/show_bug.cgi?id=16097 Safari crashes during load of LexisNexis search results.
+
+Testing that destroying the image element in a standalone image document does not lead to a crash.
+
+
diff --git a/LayoutTests/fast/dom/ImageDocument-image-deletion.html b/LayoutTests/fast/dom/ImageDocument-image-deletion.html
new file mode 100644 (file)
index 0000000..9005232
--- /dev/null
@@ -0,0 +1,24 @@
+<head>
+    <script>
+        if (window.layoutTestController)
+            layoutTestController.dumpAsText();
+
+        function test()
+        {
+            var f = document.getElementById("frame");
+            f.contentDocument.open();
+            f.contentDocument.close();
+        }
+    </script>
+</head>
+<body onload="test()">
+    <p>
+        Test for <i><a href="http://bugs.webkit.org/show_bug.cgi?id=16097">http://bugs.webkit.org/show_bug.cgi?id=16097</a>
+        Safari crashes during load of LexisNexis search results</i>.
+    </p>
+    <p>
+        Testing that destroying the image element in a standalone image
+        document does not lead to a crash.
+    </p>
+    <iframe src="resources/apple.gif" id="frame"></iframe>
+</body>