| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <body> | 3 <body> |
| 4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../resources/js-test.js"></script> |
| 5 | 5 |
| 6 <p>Elements distributed to Shadow DOM should be deleted correctly when pressing
delete key.</p> | 6 <p>Elements distributed to Shadow DOM should be deleted correctly when pressing
delete key.</p> |
| 7 <p>To test manually, select somewhere in ABCDE from somehwere in 12345, and pres
s delete, and check the selected text is deleted correctly.</p> | 7 <p>To test manually, select somewhere in ABCDE from somehwere in 12345, and pres
s delete, and check the selected text is deleted correctly.</p> |
| 8 | 8 |
| 9 <div id="container"> | 9 <div id="container"> |
| 10 <ol id="host" contenteditable> | 10 <ol id="host" contenteditable> |
| 11 <li id="list1">ABCDE</li> | 11 <li id="list1">ABCDE</li> |
| 12 <li id="list2">abcde</li> | 12 <li id="list2">abcde</li> |
| 13 <li id="list3">12345</li> | 13 <li id="list3">12345</li> |
| 14 </ol> | 14 </ol> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 36 eventSender.keyDown('delete'); | 36 eventSender.keyDown('delete'); |
| 37 | 37 |
| 38 var hostTextContent = host.textContent.replace(/^\s+|\s+$/g, ''); | 38 var hostTextContent = host.textContent.replace(/^\s+|\s+$/g, ''); |
| 39 shouldBe("hostTextContent", "'AB345'"); | 39 shouldBe("hostTextContent", "'AB345'"); |
| 40 container.innerHTML = ""; | 40 container.innerHTML = ""; |
| 41 } | 41 } |
| 42 </script> | 42 </script> |
| 43 | 43 |
| 44 </body> | 44 </body> |
| 45 </html> | 45 </html> |
| OLD | NEW |