Index: LayoutTests/fast/events/constructors/clipboard-event-constructor-expected.txt |
diff --git a/LayoutTests/fast/events/constructors/clipboard-event-constructor-expected.txt b/LayoutTests/fast/events/constructors/clipboard-event-constructor-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..28041a1767b85e2be56cd6a8281d8b35984665d6 |
--- /dev/null |
+++ b/LayoutTests/fast/events/constructors/clipboard-event-constructor-expected.txt |
@@ -0,0 +1,40 @@ |
+This tests the constructor for the ClipboardEvent DOM class. |
+ |
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". |
+ |
+ |
+PASS new ClipboardEvent('eventType').bubbles is false |
+PASS new ClipboardEvent('eventType').cancelable is false |
+PASS new ClipboardEvent('eventType', { bubbles: false }).bubbles is false |
+PASS new ClipboardEvent('eventType', { bubbles: true }).bubbles is true |
+PASS new ClipboardEvent('eventType', { cancelable: false }).cancelable is false |
+PASS new ClipboardEvent('eventType', { cancelable: true }).cancelable is true |
+PASS new ClipboardEvent('cut', { data: 'hellodata', dataType: 'text' }).clipboardData.getData('text') is "hellodata" |
+PASS new ClipboardEvent('copy', { data: 'hellodata', dataType: 'text' }).clipboardData.getData('text') is "hellodata" |
+PASS new ClipboardEvent('paste', { data: 'hellodata', dataType: 'text' }).clipboardData.getData('text') is "hellodata" |
+PASS new ClipboardEvent('cut', { data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "http://www.google.com/" |
+PASS new ClipboardEvent('copy', { data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "http://www.google.com/" |
+PASS new ClipboardEvent('paste', { data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "http://www.google.com/" |
+PASS new ClipboardEvent('cut', { data: '<em>Markup</em>', dataType: 'html' }).clipboardData.getData('html') is "<em>Markup</em>" |
+PASS new ClipboardEvent('copy', { data: '<em>Markup</em>', dataType: 'html' }).clipboardData.getData('html') is "<em>Markup</em>" |
+PASS new ClipboardEvent('paste', { data: '<em>Markup</em>', dataType: 'html' }).clipboardData.getData('html') is "<em>Markup</em>" |
+PASS new ClipboardEvent('copy', { data: '<em>Markup</em>'}).clipboardData.getData('html') is "" |
+PASS new ClipboardEvent('copy', { data: '<em>Markup</em>'}).clipboardData.getData('html') is "" |
+PASS new ClipboardEvent('copy', { data: undefined, dataType: 'text' }).clipboardData.getData('text') is "" |
+PASS new ClipboardEvent('copy', { data: null, dataType: 'text' }).clipboardData.getData('text') is "null" |
+PASS new ClipboardEvent('copy', { data: false, dataType: 'text' }).clipboardData.getData('text') is "false" |
+PASS new ClipboardEvent('copy', { data: true, dataType: 'text' }).clipboardData.getData('text') is "true" |
+PASS new ClipboardEvent('copy', { data: 12345, dataType: 'text' }).clipboardData.getData('text') is "12345" |
+PASS new ClipboardEvent('copy', { data: 18446744073709551615, dataType: 'text' }).clipboardData.getData('text') is "18446744073709552000" |
+PASS new ClipboardEvent('copy', { data: NaN, dataType: 'text' }).clipboardData.getData('text') is "NaN" |
+PASS new ClipboardEvent('copy', { data: [], dataType: 'text' }).clipboardData.getData('text') is "" |
+PASS new ClipboardEvent('copy', { data: [1, 2, 3], dataType: 'text' }).clipboardData.getData('text') is "1,2,3" |
+PASS new ClipboardEvent('eventType', { bubbles: true, cancelable: true, data: 'http://www.google.com/', dataType: 'url' }).bubbles is true |
+PASS new ClipboardEvent('eventType', { bubbles: true, cancelable: true, data: 'http://www.google.com/', dataType: 'url' }).cancelable is true |
+PASS new ClipboardEvent('copy', { bubbles: true, cancelable: true, data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "http://www.google.com/" |
+PASS new ClipboardEvent('invalid', { bubbles: true, cancelable: true, data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "" |
+PASS new ClipboardEvent({ bubbles: true, cancelable: true, data: 'http://www.google.com/', dataType: 'url' }).clipboardData.getData('url') is "" |
+PASS successfullyParsed is true |
+ |
+TEST COMPLETE |
+ |