test_bug667512.html (1005B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=667512 5 --> 6 <head> 7 <title>Test for Bug 667512</title> 8 <script src="/tests/SimpleTest/SimpleTest.js"></script> 9 <script src="/tests/SimpleTest/EventUtils.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 11 </head> 12 <body> 13 <table contenteditable="true" inpueMode="none"><tbody><tr><td id="b"><br id="a"></td></tr></tbody></table> 14 <span style="display: list-item;direction: rtl;"></span> 15 <script type="application/javascript"> 16 17 /** Test for Bug 667512 */ 18 function appendElements() { 19 window.focus(); 20 window.getSelection().collapse(document.documentElement, 0); 21 22 var x=document.getElementById('a'); 23 x.remove(); 24 25 var x=document.getElementById('b'); 26 x.remove(); 27 28 synthesizeKey("KEY_ArrowLeft"); 29 synthesizeKey("KEY_ArrowRight"); 30 31 ok(true, "Should not crash!"); 32 SimpleTest.finish(); 33 } 34 35 addLoadEvent(appendElements); 36 SimpleTest.waitForExplicitFinish(); 37 38 </script> 39 </body> 40 </html>