| OLD | NEW |
| 1 | 1 |
| 2 <div id="container"> | 2 <div id="container"> |
| 3 <p id="description"></p> | 3 <p id="description"></p> |
| 4 Manual steps (run in assertion enabled binary) | 4 Manual steps (run in assertion enabled binary) |
| 5 <ol> | 5 <ol> |
| 6 <li>Place caret before "X".</li> | 6 <li>Place caret before "X".</li> |
| 7 <li>Hit Delete key</li> | 7 <li>Hit Delete key</li> |
| 8 <li>See no assertion at Range constructor.</li> | 8 <li>See no assertion at Range constructor.</li> |
| 9 </ol> | 9 </ol> |
| 10 <div contenteditable="true">hello<span style="width: 10px; height: 10px;" id="sa
mple"> | 10 <div contenteditable="true">hello<span style="width: 10px; height: 10px;" id="sa
mple"> |
| 11 <svg viewBox="0 0 100 100" width="20" height="20" version="1.1" xmlns="http://ww
w.w3.org/2000/svg"><text x="10" y="70" font-size="80">X</text><line x1="0" y1="2
.5" x2="100" y2="2.5" stroke="red" stroke-width="5" color="yellow"></line><line
x1="0" y1="97.5" x2="100" y2="97.5" stroke="red" stroke-width="5" color="yellow"
></line></svg></span>world</div> | 11 <svg viewBox="0 0 100 100" width="20" height="20" version="1.1" xmlns="http://ww
w.w3.org/2000/svg"><text x="10" y="70" font-size="80">X</text><line x1="0" y1="2
.5" x2="100" y2="2.5" stroke="red" stroke-width="5" color="yellow"></line><line
x1="0" y1="97.5" x2="100" y2="97.5" stroke="red" stroke-width="5" color="yellow"
></line></svg></span>world</div> |
| 12 </div> | 12 </div> |
| 13 <script src="../../fast/js/resources/js-test-pre.js"></script> | 13 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 14 <script> | 14 <script> |
| 15 description('Delete SVG element without assertion'); | 15 description('Delete SVG element without assertion'); |
| 16 function $(id) { return document.getElementById(id); } | 16 function $(id) { return document.getElementById(id); } |
| 17 | 17 |
| 18 var sample = $('sample'); | 18 var sample = $('sample'); |
| 19 var range = document.createRange(); | 19 var range = document.createRange(); |
| 20 range.setStart(sample.firstChild, 1); | 20 range.setStart(sample.firstChild, 1); |
| 21 getSelection().addRange(range); | 21 getSelection().addRange(range); |
| 22 document.execCommand('forwardDelete'); | 22 document.execCommand('forwardDelete'); |
| 23 shouldBe('sample.textContent.charCodeAt(0)', '160'); // U+00A0 | 23 shouldBe('sample.textContent.charCodeAt(0)', '160'); // U+00A0 |
| 24 | 24 |
| 25 if (window.testRunner) | 25 if (window.testRunner) |
| 26 $('container').outerHTML = ''; | 26 $('container').outerHTML = ''; |
| 27 </script> | 27 </script> |
| 28 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| OLD | NEW |