The goog.testing.fs.ProgressEvent Class

goog.testing.fs.ProgressEvent
> goog.events.Event

goog.testing.fs.ProgressEvent(type, loaded, total)

A mock progress event.

type {!goog.fs.FileSaver.EventType|!goog.fs.FileReader.EventType}
Event type.
loaded {number}
The number of bytes processed.
total {number}
The total data that was to be processed, in bytes.

.defaultPrevented {boolean}

Inherited from goog.events.Event .

Whether the default action has been prevented. This is a property to match the W3C specification at {@link http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-defaultPrevented}. Must be treated as read-only outside the class.

.getLoaded()

returns {number}
The number of bytes loaded or written.
@see
{goog.fs.ProgressEvent#getLoaded}

.getTotal()

returns {number}
The total bytes to load or write.
@see
{goog.fs.ProgressEvent#getTotal}

.isLengthComputable()

returns {boolean}
True if the length is known.
@see
{goog.fs.ProgressEvent#isLengthComputable}

.preventDefault()

Inherited from goog.events.Event .

Prevents the default action, for example a link redirecting to a url.

.propagationStopped_ {boolean}

Inherited from goog.events.Event .

Whether to cancel the event in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.returnValue_ {boolean}

Inherited from goog.events.Event .

Return value for in internal capture/bubble processing for IE.

@suppress
{underscore} Technically public, but referencing this outside this package is strongly discouraged.

.stopPropagation()

Inherited from goog.events.Event .

Stops event propagation.