Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Side by Side Diff: LayoutTests/fast/events/dom-character-data-modified-textarea-crash.html

Issue 10444080: Merge 118471 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1132/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/events/dom-character-data-modified-textarea-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script> 4 <script>
5 // This test uses a weired textarea to reproduce the issue. The condition of a c rash is very sensitive to HTML. 5 // This test uses a weired textarea to reproduce the issue. The condition of a c rash is very sensitive to HTML.
6 // If we add a new-line at EOF or add other tags in <body> part, the crash will be unlikely to happen. 6 // If we add a new-line at EOF or add other tags in <body> part, the crash will be unlikely to happen.
7 // For example, if we move this comment to the actual HTML or try to load 'js-te st-pre.js', the crash won't happen. 7 // For example, if we move this comment to the actual HTML or try to load 'js-te st-pre.js', the crash won't happen.
8 // Mutation events should not be dispatched on this case. This bug is being trac ked by webkit bug https://bugs.webkit.org/show_bug.cgi?id=87372 8 // Mutation events should not be dispatched on this case. This bug is being trac ked by webkit bug https://bugs.webkit.org/show_bug.cgi?id=87372
9 if (window.layoutTestController) 9 if (window.layoutTestController)
10 layoutTestController.dumpAsText(); 10 layoutTestController.dumpAsText();
11 11
12 document.addEventListener("DOMCharacterDataModified", function() { 12 document.addEventListener("DOMCharacterDataModified", function() {
13 document.designMode = "on"; 13 document.designMode = "on";
14 document.execCommand("SelectAll"); 14 document.execCommand("SelectAll");
15 document.execCommand("Delete"); 15 document.execCommand("Delete");
16 document.body.offsetLeft; 16 document.body.offsetLeft;
17 document.body.innerHTML = 'Test passes if a DOMCharacterModified event on th e textarea does not crash.'; 17 document.body.innerHTML = 'Test passes if a DOMCharacterModified event on th e textarea does not crash.';
18 }); 18 });
19 </script> 19 </script>
20 </head> 20 </head>
21 <textarea> < 21 <textarea> <
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/dom-character-data-modified-textarea-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698