Home

# Library goog.testing.fs

Function Summary
| `blobToString(!goog.testing.fs.Blob blob, string= opt_encoding) ⇒ !goog.async.Deferred` Returns the string value of a fake blob.
| `createObjectUrl(!goog.testing.fs.Blob blob) ⇒ string` Create a fake object URL for a given fake blob. This can be used as a real URL, and it can be created and revoked normally.
| `getBlob((goog.testing.fs.Blob|string|undefined) var_args) ⇒ !goog.testing.fs.Blob` Concatenates one or more values together and converts them to a fake blob.
| `getPersistent(number size) ⇒ !goog.async.Deferred` Get a filesystem object. Since these are mocks, there's no difference between temporary and persistent filesystems.
| `getTemporary(number size) ⇒ !goog.async.Deferred` Get a filesystem object. Since these are mocks, there's no difference between temporary and persistent filesystems.
| `install(!goog.testing.PropertyReplacer stubs)` Installs goog.testing.fs in place of the standard goog.fs. After calling this, code that uses goog.fs should work without issue using goog.testing.fs.
| `isObjectUrlGranted(!goog.testing.fs.Blob blob) ⇒ boolean` Return whether or not a URL has been granted for the given blob.
| `revokeObjectUrl(string url)` Remove a URL that was created for a fake blob.