search

goog.testing.fs.Blob

Provided By
All Known Direct Subclasses

A mock Blob object. The data is stored as an Array of bytes, a "byte" being a JS number in the range 0-255.

This blob simplifies writing test code because it has the toString() method that returns immediately, while the File API only provides asynchronous reads.

new Blob( opt_data, opt_type )

Parameters
opt_data(string|Array<(string|number|Uint8Array)>|null)=

The data encapsulated by the blob.

opt_typestring=

The mime type of the blob.

See Also

https://www.w3.org/TR/FileAPI/#constructorBlob

Instance Methods

Instance Properties