| This tests copying excludes content with user-select: none. |
| To manually test, copy "hello world foo bar" below then paste. |
| |
| On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
| |
| |
| PASS getSelection().toString().includes("hello") is true |
| PASS getSelection().toString().includes("world") is false |
| PASS getSelection().toString().includes("WebKit") is true |
| PASS getSelection().toString().includes("rocks") is false |
| PASS getSelection().toString().includes("because") is false |
| PASS getSelection().toString().includes("foo") is false |
| PASS getSelection().toString().includes("bar") is true |
| PASS event.clipboardData.getData("text/plain").includes("hello") is true |
| PASS event.clipboardData.getData("text/plain").includes("world") is false |
| PASS event.clipboardData.getData("text/plain").includes("WebKit") is true |
| PASS event.clipboardData.getData("text/plain").includes("rocks") is false |
| PASS event.clipboardData.getData("text/plain").includes("beacuse") is false |
| PASS event.clipboardData.getData("text/plain").includes("foo") is false |
| PASS event.clipboardData.getData("text/plain").includes("bar") is true |
| PASS event.clipboardData.getData("text/html").includes("hello") is true |
| PASS event.clipboardData.getData("text/html").includes("world") is false |
| PASS event.clipboardData.getData("text/html").includes("<i") is false |
| PASS event.clipboardData.getData("text/html").includes("</i>") is false |
| PASS event.clipboardData.getData("text/html").includes("WebKit") is true |
| PASS event.clipboardData.getData("text/html").includes("<b ") is true |
| PASS event.clipboardData.getData("text/html").includes("</b>") is true |
| PASS event.clipboardData.getData("text/html").includes("rocks") is false |
| PASS event.clipboardData.getData("text/html").includes("<q>") is false |
| PASS event.clipboardData.getData("text/html").includes("</q>") is false |
| PASS event.clipboardData.getData("text/html").includes("because") is false |
| PASS event.clipboardData.getData("text/html").includes("<s>") is false |
| PASS event.clipboardData.getData("text/html").includes("</s>") is false |
| PASS event.clipboardData.getData("text/html").includes("<em>") is false |
| PASS event.clipboardData.getData("text/html").includes("</em>") is false |
| PASS event.clipboardData.getData("text/html").includes("foo") is false |
| PASS event.clipboardData.getData("text/html").includes("bar") is true |
| PASS successfullyParsed is true |
| |
| TEST COMPLETE |
| hello world WebKit rocks because foo bar |
| hello WebKit bar |
| |