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

Side by Side Diff: LayoutTests/editing/input/set-value-on-input-and-delete.html

Issue 5812003: Merge 73279 - 2010-12-03 Ryosuke Niwa <rniwa@webkit.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/597/
Patch Set: Created 10 years 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/editing/input/set-value-on-input-and-delete-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 <body> 3 <body>
4 <p>This tests deleting a character after input event handler modified values of textarea. WebKit should not crash and you should see PASS below:</p> 4 <p>This tests deleting a character after input event handler modified values of textarea. WebKit should not crash and you should see PASS below:</p>
5 <form><textarea oninput="this.value != '' ? this.value = 'b' : null">a</textarea ></form> 5 <form><textarea oninput="this.value != '' ? this.value = 'b' : null">a</textarea ></form>
6 <script> 6 <script>
7 7
8 if (window.layoutTestController) 8 if (window.layoutTestController)
9 layoutTestController.dumpAsText(); 9 layoutTestController.dumpAsText();
10 10
11 var text = document.forms[0].elements[0]; 11 var text = document.forms[0].elements[0];
12 text.focus(); 12 text.focus();
13 text.setSelectionRange(text.value.length, text.value.length); 13 text.setSelectionRange(text.value.length, text.value.length);
14 document.execCommand('InsertLineBreak', false, null); 14 document.execCommand('InsertLineBreak', false, null);
15 document.execCommand('Delete', false, null); 15 document.execCommand('Delete', false, null);
16 document.write(text.value == '' ? 'PASS' : 'FAIL'); 16 document.write(text.value == '' ? 'PASS' : 'FAIL');
17 17
18 </script> 18 </script>
19 </body> 19 </body>
20 </html> 20 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/editing/input/set-value-on-input-and-delete-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698