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

Side by Side Diff: LayoutTests/fast/forms/textarea-and-mutation-events-appending-text.html

Issue 10916125: Merge 125162 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 3 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 description("Ensuring that mutation event with text modification on a textarea d oesn't crash"); 8 description("Ensuring that mutation event with text modification on a textarea d oesn't crash");
9 9
10 span = document.createElementNS("http://www.w3.org/1999/xhtml", "span"); 10 span = document.createElementNS("http://www.w3.org/1999/xhtml", "span");
11 document.implementation.createDocument("", "", null).adoptNode(span); 11 document.implementation.createDocument("", "", null).adoptNode(span);
12 12
13 textarea = document.createElementNS("http://www.w3.org/1999/xhtml", "textarea"); 13 textarea = document.createElementNS("http://www.w3.org/1999/xhtml", "textarea");
14 textarea.textContent = "Value"; 14 textarea.textContent = "Value";
15 textarea.addEventListener("DOMCharacterDataModified", function (evt) { console.l og(evt.target); textarea.textContent = ""; }, false); 15 textarea.addEventListener("DOMCharacterDataModified", function (evt) { console.l og(evt.target); textarea.textContent = ""; }, false);
16 document.body.appendChild(textarea); 16 document.body.appendChild(textarea);
17 17
18 text = document.createTextNode("Hello?"); 18 text = document.createTextNode("Hello?");
19 textarea.appendChild(text); 19 textarea.appendChild(text);
20 span.appendChild(text); 20 span.appendChild(text);
21 21
22 testPassed("unless crash.") 22 testPassed("unless crash.")
23 </script> 23 </script>
24 <script src="../../fast/js/resources/js-test-post.js"></script> 24 <script src="../../fast/js/resources/js-test-post.js"></script>
25 </body> 25 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698