testing.fs.ProgressEvent Extends goog.events.Event
A mock progress event.

Inheritance

Constructor

goog.testing.fs.ProgressEvent(typeloadedtotal)

Parameters

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.

Instance Methods

Public Protected Private
getLoaded() number
No description.
Returns: number  The number of bytes loaded or written.
code »
getTotal() number
No description.
Returns: number  The total bytes to load or write.
code »
isLengthComputable() boolean
No description.
Returns: boolean  True if the length is known.
code »
dispose()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
disposeInternal()
Events don't need to be disposed. For backwards compatibility (goog.events.Event used to inherit goog.Disposable).
code »
preventDefault()
Prevents the default action, for example a link redirecting to a url.
code »
stopPropagation()
Stops event propagation.
code »

Instance Properties

constructor :
No description.
Code »
loaded_ :
The number of bytes processed.
Code »
total_ :
The total data that was to be procesed, in bytes.
Code »
currentTarget :
Object that had the listener attached.
Code »
defaultPrevented :
Whether the default action has been prevented. This is a property to match the W3C specification at http://www.w3.org/TR/DOM-Level-3-Events/ #events-event-type-defaultPrevented. Must be treated as read-only outside the class.
Code »
propagationStopped_ :
Whether to cancel the event in internal capture/bubble processing for IE.
Code »
returnValue_ :
Return value for in internal capture/bubble processing for IE.
Code »
target :
Target of the event.
Code »
type :
Event type.
Code »

Static Properties

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

Package testing.fs

Package Reference