Commit a06b9b69 authored by Chromium WPT Sync's avatar Chromium WPT Sync Committed by Commit Bot

Import wpt@51e77bba5c7e01c569bf2150d0ea489c92111b19

Using wpt-import in Chromium 2f43d0a5.
With Chromium commits locally applied on WPT:
14350ac7 "[PE] Don't truncate table cell's padding"


Build: https://ci.chromium.org/buildbot/chromium.infra.cron/wpt-importer/13459

Note to sheriffs: This CL imports external tests and adds
expectations for those tests; if this CL is large and causes
a few new failures, please fix the failures by adding new
lines to TestExpectations rather than reverting. See:
https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_platform_tests.md

Directory owners for changes in this CL:
garykac@chromium.org:
  external/wpt/clipboard-apis

TBR=robertma

No-Export: true
Change-Id: I9c6a82fe266d6ac06672792957e389e69b534ad4
Reviewed-on: https://chromium-review.googlesource.com/953402
Commit-Queue: Blink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Reviewed-by: default avatarBlink WPT Bot <blink-w3c-test-autoroller@chromium.org>
Cr-Commit-Position: refs/heads/master@{#541599}
parent 8bded5ec
This is a testharness.js-based test.
PASS Test driver
PASS Navigator interface: attribute clipboard
PASS Unscopable handled correctly for clipboard property on Navigator
PASS Navigator interface: navigator must inherit property "clipboard" with the proper type
FAIL ClipboardEvent interface: existence and properties of interface object Cannot read property 'has_extended_attribute' of undefined
PASS ClipboardEvent interface object length
PASS ClipboardEvent interface object name
FAIL ClipboardEvent interface: existence and properties of interface prototype object Cannot read property 'has_extended_attribute' of undefined
PASS ClipboardEvent interface: existence and properties of interface prototype object's "constructor" property
PASS ClipboardEvent interface: existence and properties of interface prototype object's @@unscopables property
PASS ClipboardEvent interface: attribute clipboardData
PASS Unscopable handled correctly for clipboardData property on ClipboardEvent
PASS ClipboardEvent must be primary interface of new ClipboardEvent("x")
FAIL Stringification of new ClipboardEvent("x") Cannot read property 'has_stringifier' of undefined
PASS ClipboardEvent interface: new ClipboardEvent("x") must inherit property "clipboardData" with the proper type
PASS Clipboard interface: existence and properties of interface object
PASS Clipboard interface object length
PASS Clipboard interface object name
PASS Clipboard interface: existence and properties of interface prototype object
PASS Clipboard interface: existence and properties of interface prototype object's "constructor" property
PASS Clipboard interface: existence and properties of interface prototype object's @@unscopables property
PASS Clipboard interface: operation read()
PASS Unscopable handled correctly for read() on Clipboard
PASS Clipboard interface: operation readText()
PASS Unscopable handled correctly for readText() on Clipboard
PASS Clipboard interface: operation write(DataTransfer)
PASS Unscopable handled correctly for write(DataTransfer) on Clipboard
PASS Clipboard interface: operation writeText(DOMString)
PASS Unscopable handled correctly for writeText(DOMString) on Clipboard
PASS Clipboard must be primary interface of navigator.clipboard
PASS Stringification of navigator.clipboard
PASS Clipboard interface: navigator.clipboard must inherit property "read()" with the proper type
PASS Clipboard interface: navigator.clipboard must inherit property "readText()" with the proper type
PASS Clipboard interface: navigator.clipboard must inherit property "write(DataTransfer)" with the proper type
PASS Clipboard interface: calling write(DataTransfer) on navigator.clipboard with too few arguments must throw TypeError
PASS Clipboard interface: navigator.clipboard must inherit property "writeText(DOMString)" with the proper type
PASS Clipboard interface: calling writeText(DOMString) on navigator.clipboard with too few arguments must throw TypeError
Harness: the test ran to completion.
......@@ -19,6 +19,7 @@ function doTest(idls) {
idl_array.add_objects({
Navigator: ['navigator'],
Clipboard: ['navigator.clipboard'],
ClipboardEvent: ['new ClipboardEvent("x")'],
});
idl_array.test();
};
......@@ -28,7 +29,7 @@ function fetchText(url) {
}
promise_test(() => {
return Promise.all(["/interfaces/clipboard.idl"].map(fetchText))
return Promise.all(["/interfaces/clipboard-apis.idl"].map(fetchText))
.then(doTest);
}, "Test driver");
</script>
dictionary ClipboardEventInit : EventInit {
DataTransfer? clipboardData = null;
};
[Constructor(DOMString type, optional ClipboardEventInit eventInitDict), Exposed=Window]
interface ClipboardEvent : Event {
readonly attribute DataTransfer? clipboardData;
};
partial interface Navigator {
[SecureContext, SameObject] readonly attribute Clipboard clipboard;
};
[SecureContext, Exposed=Window] interface Clipboard : EventTarget {
Promise<DataTransfer> read();
Promise<DOMString> readText();
Promise<void> write(DataTransfer data);
Promise<void> writeText(DOMString data);
};
dictionary ClipboardPermissionDescriptor : PermissionDescriptor {
boolean allowWithoutGesture = false;
};
[SecureContext]
interface Clipboard : EventTarget {
Promise<DataTransfer> read();
Promise<DOMString> readText();
Promise<void> write(DataTransfer data);
Promise<void> writeText(DOMString data);
};
[SecureContext]
partial interface Navigator {
[SameObject] readonly attribute Clipboard clipboard;
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment