Title: [115360] trunk/LayoutTests
Revision
115360
Author
[email protected]
Date
2012-04-26 14:10:22 -0700 (Thu, 26 Apr 2012)

Log Message

Add a test for crash in DOMSelection::deleteFromDocument
https://bugs.webkit.org/show_bug.cgi?id=84991

Reviewed by Alexey Proskuryakov.

Add a test for the bug 44153 (fixed in r65587).

* editing/selection/deleteFromDocument-after-document-open-crash-expected.txt: Added.
* editing/selection/deleteFromDocument-after-document-open-crash.html: Added.

Modified Paths

Added Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (115359 => 115360)


--- trunk/LayoutTests/ChangeLog	2012-04-26 21:08:22 UTC (rev 115359)
+++ trunk/LayoutTests/ChangeLog	2012-04-26 21:10:22 UTC (rev 115360)
@@ -1,3 +1,15 @@
+2012-04-26  Ryosuke Niwa  <[email protected]>
+
+        Add a test for crash in DOMSelection::deleteFromDocument
+        https://bugs.webkit.org/show_bug.cgi?id=84991
+
+        Reviewed by Alexey Proskuryakov.
+
+        Add a test for the bug 44153 (fixed in r65587).
+
+        * editing/selection/deleteFromDocument-after-document-open-crash-expected.txt: Added.
+        * editing/selection/deleteFromDocument-after-document-open-crash.html: Added.
+
 2012-04-26  Benjamin Poulain  <[email protected]>
 
         ObjcClass::methodsNamed() can leak if buffer is dynamically allocated

Added: trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash-expected.txt (0 => 115360)


--- trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash-expected.txt	                        (rev 0)
+++ trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash-expected.txt	2012-04-26 21:10:22 UTC (rev 115360)
@@ -0,0 +1,3 @@
+This calling deleteFromDocument after document.open. WebKit should not crash.
+PASS
+

Added: trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash.html (0 => 115360)


--- trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash.html	                        (rev 0)
+++ trunk/LayoutTests/editing/selection/deleteFromDocument-after-document-open-crash.html	2012-04-26 21:10:22 UTC (rev 115360)
@@ -0,0 +1,27 @@
+<html>
+<head>
+<script>
+
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+
+function run() {
+    selection = window.getSelection();
+    range = document.createRange();
+    selection.addRange(range);
+
+    document.designMode = "on";
+    document.execCommand("InsertText", false, 'x');
+    document.open();
+    document.execCommand("Undo");
+
+    selection.deleteFromDocument();
+
+    document.write('This calling deleteFromDocument after document.open. WebKit should not crash.<br>');
+    document.write('PASS<br>');
+}
+</script>
+</head>
+<body _onload_="run()">
+</body>
+</html>
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to