| Index: third_party/WebKit/LayoutTests/imported/wpt/FileAPI/idlharness.idl
|
| diff --git a/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/idlharness.idl b/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/idlharness.idl
|
| index 62e6c5d9f2195054c40f6df754c6944737e378d8..d8f31b43a80deec9b0167b666a05bb67c7b5c28f 100644
|
| --- a/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/idlharness.idl
|
| +++ b/third_party/WebKit/LayoutTests/imported/wpt/FileAPI/idlharness.idl
|
| @@ -1,5 +1,7 @@
|
| -[Constructor,
|
| - Constructor(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)> blobParts, optional BlobPropertyBag options), Exposed=Window,Worker]
|
| +// https://w3c.github.io/FileAPI/#idl-index
|
| +
|
| +[Constructor(optional sequence<BlobPart> blobParts, optional BlobPropertyBag options),
|
| +Exposed=(Window,Worker)]
|
| interface Blob {
|
|
|
| readonly attribute unsigned long long size;
|
| @@ -9,8 +11,8 @@ interface Blob {
|
| //slice Blob into byte-ranged chunks
|
|
|
| Blob slice([Clamp] optional long long start,
|
| - [Clamp] optional long long end,
|
| - optional DOMString contentType);
|
| + [Clamp] optional long long end,
|
| + optional DOMString contentType);
|
| void close();
|
|
|
| };
|
| @@ -19,32 +21,33 @@ dictionary BlobPropertyBag {
|
| DOMString type = "";
|
| };
|
|
|
| -[Constructor(sequence<(Blob or DOMString or ArrayBufferView or ArrayBuffer)> fileBits,
|
| -[EnsureUTF16] DOMString fileName, optional FilePropertyBag options), Exposed=Window,Worker]
|
| -interface File : Blob {
|
| +typedef (BufferSource or Blob or USVString) BlobPart;
|
|
|
| +[Constructor(sequence<BlobPart> fileBits,
|
| + [EnsureUTF16] DOMString fileName,
|
| + optional FilePropertyBag options),
|
| +Exposed=(Window,Worker)]
|
| +interface File : Blob {
|
| readonly attribute DOMString name;
|
| readonly attribute long long lastModified;
|
| -
|
| };
|
|
|
| -dictionary FilePropertyBag {
|
| -
|
| - DOMString type = "";
|
| +dictionary FilePropertyBag : BlobPropertyBag {
|
| long long lastModified;
|
| -
|
| };
|
|
|
| -[Exposed=Window,Worker] interface FileList {
|
| +[Exposed=(Window,Worker)]
|
| +interface FileList {
|
| getter File? item(unsigned long index);
|
| readonly attribute unsigned long length;
|
| };
|
|
|
| -[Constructor, Exposed=Window,Worker]
|
| +[Constructor, Exposed=(Window,Worker)]
|
| interface FileReader: EventTarget {
|
|
|
| // async read methods
|
| void readAsArrayBuffer(Blob blob);
|
| + void readAsBinaryString(Blob blob);
|
| void readAsText(Blob blob, optional DOMString label);
|
| void readAsDataURL(Blob blob);
|
|
|
| @@ -55,6 +58,7 @@ interface FileReader: EventTarget {
|
| const unsigned short LOADING = 1;
|
| const unsigned short DONE = 2;
|
|
|
| +
|
| readonly attribute unsigned short readyState;
|
|
|
| // File or Blob data
|
| @@ -62,7 +66,7 @@ interface FileReader: EventTarget {
|
|
|
| readonly attribute DOMError? error;
|
|
|
| - // event handler attributes
|
| + // event handler content attributes
|
| attribute EventHandler onloadstart;
|
| attribute EventHandler onprogress;
|
| attribute EventHandler onload;
|
| @@ -72,20 +76,19 @@ interface FileReader: EventTarget {
|
|
|
| };
|
|
|
| -partial interface URL {
|
| -
|
| - static DOMString createObjectURL(Blob blob);
|
| - static DOMString createFor(Blob blob);
|
| - static void revokeObjectURL(DOMString url);
|
| -
|
| -};
|
| -
|
| [Constructor, Exposed=Worker]
|
| interface FileReaderSync {
|
| -
|
| // Synchronously return strings
|
|
|
| ArrayBuffer readAsArrayBuffer(Blob blob);
|
| + DOMString readAsBinaryString(Blob blob);
|
| DOMString readAsText(Blob blob, optional DOMString label);
|
| DOMString readAsDataURL(Blob blob);
|
| };
|
| +
|
| +[Exposed=(Window,DedicatedWorker,SharedWorker)]
|
| +partial interface URL {
|
| + static DOMString createObjectURL(Blob blob);
|
| + static DOMString createFor(Blob blob);
|
| + static void revokeObjectURL(DOMString url);
|
| +};
|
|
|