Title: [126555] branches/safari-536.26-branch/LayoutTests
Revision
126555
Author
[email protected]
Date
2012-08-24 01:39:06 -0700 (Fri, 24 Aug 2012)

Log Message

2012-08-24  Jon Honeycutt  <[email protected]>

        Merge changes to test from r125162. Patch by Mark Lam.

        * fast/events/dom-character-data-modified-textarea-crash.html:

Modified Paths

Diff

Modified: branches/safari-536.26-branch/LayoutTests/ChangeLog (126554 => 126555)


--- branches/safari-536.26-branch/LayoutTests/ChangeLog	2012-08-24 08:39:03 UTC (rev 126554)
+++ branches/safari-536.26-branch/LayoutTests/ChangeLog	2012-08-24 08:39:06 UTC (rev 126555)
@@ -1,3 +1,9 @@
+2012-08-24  Jon Honeycutt  <[email protected]>
+
+        Merge changes to test from r125162. Patch by Mark Lam.
+
+        * fast/events/dom-character-data-modified-textarea-crash.html:
+
 2012-08-23  Beth Dakin  <[email protected]>
 
         Updated the expected results for this test after r125463.

Modified: branches/safari-536.26-branch/LayoutTests/fast/events/dom-character-data-modified-textarea-crash.html (126554 => 126555)


--- branches/safari-536.26-branch/LayoutTests/fast/events/dom-character-data-modified-textarea-crash.html	2012-08-24 08:39:03 UTC (rev 126554)
+++ branches/safari-536.26-branch/LayoutTests/fast/events/dom-character-data-modified-textarea-crash.html	2012-08-24 08:39:06 UTC (rev 126555)
@@ -5,17 +5,28 @@
 // This test uses a weired textarea to reproduce the issue. The condition of a crash is very sensitive to HTML.
 // If we add a new-line at EOF or add other tags in <body> part, the crash will be unlikely to happen.
 // For example, if we move this comment to the actual HTML or try to load 'js-test-pre.js', the crash won't happen.
-// Mutation events should not be dispatched on this case. This bug is being tracked by webkit bug https://bugs.webkit.org/show_bug.cgi?id=87372
-if (window.layoutTestController)
+//
+// * Mutation events should not be dispatched on this case. This bug is being tracked by webkit bug https://bugs.webkit.org/show_bug.cgi?id=87372
+// * ... And Mutation events are no longer fired. See https://bugs.webkit.org/show_bug.cgi?id=93427.
+//   We would keep this test just for preventing regression.
+if (window.layoutTestController) {
     layoutTestController.dumpAsText();
+    layoutTestController.waitUntilDone();
+}
 
-document.addEventListener("DOMCharacterDataModified", function() {
+function attackAndFinish() {
     document.designMode = "on";
     document.execCommand("SelectAll");
     document.execCommand("Delete");
     document.body.offsetLeft;
     document.body.innerHTML = 'Test passes if a DOMCharacterModified event on the textarea does not crash.';
-});
+    if (window.layoutTestController)
+        layoutTestController.notifyDone();
+}
+
+document.addEventListener("DOMCharacterDataModified", attackAndFinish);
+
+window.setTimeout(attackAndFinish, 10);
 </script>
 </head>
-<textarea> <
\ No newline at end of file
+<textarea> <
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to