OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <script src="../../resources/dump-as-markup.js"></script> |
| 4 <script> |
| 5 function selectAndRemoveFormat() |
| 6 { |
| 7 document.designMode = 'on'; |
| 8 document.execCommand('SelectAll'); |
| 9 document.execCommand('RemoveFormat'); |
| 10 } |
| 11 |
| 12 function dumpAfterCommand() |
| 13 { |
| 14 Markup.description('This testcase is to test crash scenario when designM
ode is set on document and RemoveFormat is called. Expected result is that crash
should not happen and underline should be removed from all the selected text') |
| 15 Markup.dump('container'); |
| 16 } |
| 17 </script> |
| 18 <body> |
| 19 <div id="container" style="text-decoration: underline !important;">This Test
should not crash. |
| 20 <iframe onload="selectAndRemoveFormat()"></iframe> |
| 21 <p>PASS</p> |
| 22 </div> |
| 23 <script> |
| 24 dumpAfterCommand(); |
| 25 </script> |
| 26 </body> |
| 27 </html> |
OLD | NEW |