| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <title>Test -webkit-user-select with a placeholder in a textfield.</title> | 4 <title>Test -webkit-user-select with a placeholder in a textfield.</title> |
| 5 <script src="../../fast/js/resources/js-test-pre.js"></script> | 5 <script src="../../fast/js/resources/js-test-pre.js"></script> |
| 6 <style> | 6 <style> |
| 7 * { -webkit-user-select: none; } | 7 * { -webkit-user-select: none; } |
| 8 input { -webkit-user-select: text; } | 8 input { -webkit-user-select: text; } |
| 9 </style> | 9 </style> |
| 10 </head> | 10 </head> |
| 11 <body> | 11 <body> |
| 12 <p id="description"></p> | 12 <p id="description"></p> |
| 13 <div id="console"></div> | 13 <div id="console"></div> |
| 14 <input id="x" value="PASS"> | 14 <input id="x" value="PASS"> |
| 15 <script> | 15 <script> |
| 16 description("Test that deleting the text in a textfield, and pasting, doesn'
t hit an issue with -webkit-user-select on br"); | 16 description("Test that deleting the text in a textfield, and pasting, doesn'
t hit an issue with -webkit-user-select on br"); |
| 17 | 17 |
| 18 var input = document.getElementById("x"); | 18 var input = document.getElementById("x"); |
| 19 input.focus(); | 19 input.focus(); |
| 20 input.select(); | 20 input.select(); |
| 21 | 21 |
| 22 document.execCommand("Copy"); | 22 document.execCommand("Copy"); |
| 23 document.execCommand("Delete"); | 23 document.execCommand("Delete"); |
| 24 document.execCommand("Paste"); | 24 document.execCommand("Paste"); |
| 25 | 25 |
| 26 shouldBe('input.value', '"PASS"'); | 26 shouldBe('input.value', '"PASS"'); |
| 27 | 27 |
| 28 </script> | 28 </script> |
| 29 <script src="../../fast/js/resources/js-test-post.js"></script> | |
| 30 </body> | 29 </body> |
| 31 </html> | 30 </html> |
| OLD | NEW |