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

Side by Side Diff: LayoutTests/accessibility/textbox-role-on-contenteditable-crash.html

Issue 9285027: Merge 103650 - Fix crash when adding paragraph in contenteditable with role=textbox. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/963/
Patch Set: Created 8 years, 11 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/accessibility/textbox-role-on-contenteditable-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 <body> 3 <body>
4 <p>This tests a crashing scenario where an element with a textbox role attribute which also contenteditable has its content changed.</p> 4 <p>This tests a crashing scenario where an element with a textbox role attribute which also contenteditable has its content changed.</p>
5 <div id="textbox" role="textbox" aria-multiline="true" contenteditable="true" ta bindex="0"> 5 <div id="textbox" role="textbox" aria-multiline="true" contenteditable="true" ta bindex="0">
6 Textbox content. 6 Textbox content.
7 </div> 7 </div>
8 8
9 <script> 9 <script>
10 10
11 if (window.accessibilityController) { 11 if (window.accessibilityController) {
12 layoutTestController.dumpAsText(); 12 layoutTestController.dumpAsText();
13 var textbox = document.getElementById("textbox"); 13 var textbox = document.getElementById("textbox");
14 textbox.focus(); 14 textbox.focus();
15 var textboxAXElement = accessibilityController.focusedElement; 15 var textboxAXElement = accessibilityController.focusedElement;
16 16
17 getSelection().setBaseAndExtent(textbox.firstChild, 0, textbox.firstChild, 0 ); 17 getSelection().setBaseAndExtent(textbox.firstChild, 0, textbox.firstChild, 0 );
18 18
19 // This should not crash. 19 // This should not crash.
20 document.execCommand("InsertParagraph"); 20 document.execCommand("InsertParagraph");
21 21
22 document.write("PASS"); 22 document.write("PASS");
23 } 23 }
24 24
25 </script> 25 </script>
26 </body> 26 </body>
27 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/accessibility/textbox-role-on-contenteditable-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698