| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <link rel="help" href="http://www.w3.org/TR/2013/WD-html51-20130528/editing.html
#dom-datatransferitemlist-remove"> | 4 <link rel="help" href="http://www.w3.org/TR/2013/WD-html51-20130528/editing.html
#dom-datatransferitemlist-remove"> |
| 5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body> | 7 <body> |
| 8 <script> | 8 <script> |
| 9 description("Checks that DataTransferItemList.remove() is working"); | 9 description("Checks that DataTransferItemList.remove() is working"); |
| 10 | 10 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 shouldBe('dataTansferItemList.length', '2'); | 50 shouldBe('dataTansferItemList.length', '2'); |
| 51 shouldThrow('dataTansferItemList.remove(0)', '"InvalidStateError: An attempt
was made to use an object that is not, or is no longer, usable."'); // List is
readonly during paste. | 51 shouldThrow('dataTansferItemList.remove(0)', '"InvalidStateError: An attempt
was made to use an object that is not, or is no longer, usable."'); // List is
readonly during paste. |
| 52 shouldBe('dataTansferItemList.length', '2'); | 52 shouldBe('dataTansferItemList.length', '2'); |
| 53 } | 53 } |
| 54 | 54 |
| 55 document.oncopy = copy; | 55 document.oncopy = copy; |
| 56 document.onpaste = paste; | 56 document.onpaste = paste; |
| 57 document.execCommand('copy'); | 57 document.execCommand('copy'); |
| 58 document.execCommand('paste'); | 58 document.execCommand('paste'); |
| 59 </script> | 59 </script> |
| 60 <script src="../js/resources/js-test-post.js"></script> | |
| 61 </body> | 60 </body> |
| 62 </html> | 61 </html> |
| OLD | NEW |