OLD | NEW |
(Empty) | |
| 1 This tests the constructor for the ClipboardEvent DOM class. |
| 2 |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 |
| 5 |
| 6 PASS new ClipboardEvent('eventType').bubbles is false |
| 7 PASS new ClipboardEvent('eventType').cancelable is false |
| 8 PASS new ClipboardEvent('eventType', { bubbles: false }).bubbles is false |
| 9 PASS new ClipboardEvent('eventType', { bubbles: true }).bubbles is true |
| 10 PASS new ClipboardEvent('eventType', { cancelable: false }).cancelable is false |
| 11 PASS new ClipboardEvent('eventType', { cancelable: true }).cancelable is true |
| 12 PASS new ClipboardEvent('cut', { data: 'hellodata', dataType: 'text' }).clipboar
dData.getData('text') is "hellodata" |
| 13 PASS new ClipboardEvent('copy', { data: 'hellodata', dataType: 'text' }).clipboa
rdData.getData('text') is "hellodata" |
| 14 PASS new ClipboardEvent('paste', { data: 'hellodata', dataType: 'text' }).clipbo
ardData.getData('text') is "hellodata" |
| 15 PASS new ClipboardEvent('cut', { data: 'http://www.google.com/', dataType: 'url'
}).clipboardData.getData('url') is "http://www.google.com/" |
| 16 PASS new ClipboardEvent('copy', { data: 'http://www.google.com/', dataType: 'url
' }).clipboardData.getData('url') is "http://www.google.com/" |
| 17 PASS new ClipboardEvent('paste', { data: 'http://www.google.com/', dataType: 'ur
l' }).clipboardData.getData('url') is "http://www.google.com/" |
| 18 PASS new ClipboardEvent('cut', { data: '<em>Markup</em>', dataType: 'html' }).cl
ipboardData.getData('html') is "<em>Markup</em>" |
| 19 PASS new ClipboardEvent('copy', { data: '<em>Markup</em>', dataType: 'html' }).c
lipboardData.getData('html') is "<em>Markup</em>" |
| 20 PASS new ClipboardEvent('paste', { data: '<em>Markup</em>', dataType: 'html' }).
clipboardData.getData('html') is "<em>Markup</em>" |
| 21 PASS new ClipboardEvent('copy', { data: '<em>Markup</em>'}).clipboardData.getDat
a('html') is "" |
| 22 PASS new ClipboardEvent('copy', { data: '<em>Markup</em>'}).clipboardData.getDat
a('html') is "" |
| 23 PASS new ClipboardEvent('copy', { data: undefined, dataType: 'text' }).clipboard
Data.getData('text') is "" |
| 24 PASS new ClipboardEvent('copy', { data: null, dataType: 'text' }).clipboardData.
getData('text') is "null" |
| 25 PASS new ClipboardEvent('copy', { data: false, dataType: 'text' }).clipboardData
.getData('text') is "false" |
| 26 PASS new ClipboardEvent('copy', { data: true, dataType: 'text' }).clipboardData.
getData('text') is "true" |
| 27 PASS new ClipboardEvent('copy', { data: 12345, dataType: 'text' }).clipboardData
.getData('text') is "12345" |
| 28 PASS new ClipboardEvent('copy', { data: 18446744073709551615, dataType: 'text' }
).clipboardData.getData('text') is "18446744073709552000" |
| 29 PASS new ClipboardEvent('copy', { data: NaN, dataType: 'text' }).clipboardData.g
etData('text') is "NaN" |
| 30 PASS new ClipboardEvent('copy', { data: [], dataType: 'text' }).clipboardData.ge
tData('text') is "" |
| 31 PASS new ClipboardEvent('copy', { data: [1, 2, 3], dataType: 'text' }).clipboard
Data.getData('text') is "1,2,3" |
| 32 PASS new ClipboardEvent('eventType', { bubbles: true, cancelable: true, data: 'h
ttp://www.google.com/', dataType: 'url' }).bubbles is true |
| 33 PASS new ClipboardEvent('eventType', { bubbles: true, cancelable: true, data: 'h
ttp://www.google.com/', dataType: 'url' }).cancelable is true |
| 34 PASS new ClipboardEvent('copy', { bubbles: true, cancelable: true, data: 'http:/
/www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "http://ww
w.google.com/" |
| 35 PASS new ClipboardEvent('invalid', { bubbles: true, cancelable: true, data: 'htt
p://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "" |
| 36 PASS new ClipboardEvent({ bubbles: true, cancelable: true, data: 'http://www.goo
gle.com/', dataType: 'url' }).clipboardData.getData('url') is "" |
| 37 PASS divTag.textContent is "DefaultText" |
| 38 PASS successfullyParsed is true |
| 39 |
| 40 TEST COMPLETE |
| 41 DefaultText |
OLD | NEW |