testing.fs.FileEntry Extends goog.testing.fs.Entry
A mock file entry object.

Inheritance

Constructor

goog.testing.fs.FileEntry(fsparentnamedataopt_type)

Parameters

fs : !goog.testing.fs.FileSystem
The filesystem containing this entry.
parent : !goog.testing.fs.DirectoryEntry
The directory entry directly containing this entry.
name : string
The name of this entry.
data : string
The data initially contained in the file.
opt_type : string=
The mime type of the blob.

Instance Methods

Public Protected Private
clone()
No description.
code »
createWriter()
No description.
code »
file()
No description.
code »
fileSync() !goog.testing.fs.File
Get the internal file representation synchronously, without waiting for a Deferred to resolve.
Returns: !goog.testing.fs.File  The internal file blob referenced by this FileEntry.
code »
getLastModified()
No description.
code »
getMetadata()
No description.
code »
isDirectory()
No description.
code »
isFile()
No description.
code »
checkNotDeleted(action) !goog.async.Deferred
Return a deferred that will call its errback if this entry has been deleted. In addition, the deferred will only run after a timeout of 0, and all its callbacks will run with the entry as "this".
Arguments:
action : string
The name of the action being performed. For error reporting.
Returns: !goog.async.Deferred  The deferred that will be called after a timeout of 0.
code »
clone() !goog.testing.fs.Entry
No description.
Returns: !goog.testing.fs.Entry  A shallow copy of this entry object.
code »
copyTo()
No description.
code »
getFileSystem() !goog.testing.fs.FileSystem
No description.
Returns: !goog.testing.fs.FileSystem  No description.
code »
getFullPath()
No description.
code »
getName()
No description.
code »
getParent()
No description.
code »
moveTo()
No description.
code »
remove()
No description.
code »
toUri()
No description.
code »
toUrl()
No description.
code »

Instance Properties

constructor :
No description.
Code »
The internal file blob referenced by this file entry.
Code »
metadata_ :
The metadata for file.
Code »
deleted :
Whether or not this entry has been deleted.
Code »
This entry's filesystem.
Code »
getLastModified :
No description.
Code »
getMetadata :
No description.
Code »
isDirectory :
No description.
Code »
isFile :
No description.
Code »
name_ :
The name of this entry.
Code »
The parent of this entry.
Code »
wrapEntry :
No description.
Code »

Static Properties

goog.testing.fs.FileEntry.superClass_ :
No description.
Code »

Package testing.fs

Package Reference