1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- goog.setTestOnly('goog.testing.fs.ProgressEvent');
- goog.provide('goog.testing.fs.ProgressEvent');
- goog.require('goog.events.Event');
- goog.testing.fs.ProgressEvent = function(type, loaded, total) {
- goog.testing.fs.ProgressEvent.base(this, 'constructor', type);
-
- this.loaded_ = loaded;
-
- this.total_ = total;
- };
- goog.inherits(goog.testing.fs.ProgressEvent, goog.events.Event);
- goog.testing.fs.ProgressEvent.prototype.isLengthComputable = function() {
- return true;
- };
- goog.testing.fs.ProgressEvent.prototype.getLoaded = function() {
- return this.loaded_;
- };
- goog.testing.fs.ProgressEvent.prototype.getTotal = function() {
- return this.total_;
- };
|