goog.testing.fs.File
Classgoog.testing.fs.File
> goog.testing.fs.Blob
goog.testing.fs.File(name, opt_lastModified, opt_data, opt_type)
A mock file object.
name
{string
}
opt_lastModified
{Date
=}
opt_data
{string
=}
opt_type
{string
=}
.lastModifiedDate
{Date
}.name
{string
}.setDataInternal(data)
Inherited from goog.testing.fs.Blob
.
Sets the internal contents of the blob. This should only be called by other functions inside the {@code goog.testing.fs} namespace.
data
{string
}
.size
{number
}Inherited from goog.testing.fs.Blob
.
.slice(start, length, opt_contentType)
Inherited from goog.testing.fs.Blob
.
start
{number
}
length
{number
}
opt_contentType
{string
=}
goog.testing.fs.Blob
}
.toArrayBuffer()
Inherited from goog.testing.fs.Blob
.
ArrayBuffer
}
.toDataUrl()
Inherited from goog.testing.fs.Blob
.
string
}
.toString()
Inherited from goog.testing.fs.Blob
.
string
}