| Function Summary | |
blobToString(!goog.testing.fs.Blob blob, string= opt_encoding) ⇒ !goog.async.DeferredReturns the string value of a fake blob. | |
createObjectUrl(!goog.testing.fs.Blob blob) ⇒ stringCreate a fake object URL for a given fake blob. This can't be used as a real URL, but it can be created and revoked normally. | |
getBlob((goog.testing.fs.Blob|string|undefined) var_args) ⇒ !goog.testing.fs.BlobConcatenates one or more values together and converts them to a fake blob. | |
getPersistent(number size) ⇒ !goog.async.DeferredGet a filesystem object. Since these are mocks, there's no difference between temporary and persistent filesystems. | |
getTemporary(number size) ⇒ !goog.async.DeferredGet 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) ⇒ booleanReturn 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. | |