aboutsummaryrefslogtreecommitdiff
path: root/tools/reproduceriter.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-09-13 14:23:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-09-13 14:23:33 -0700
commit64a4241e29dbe768ab16b03e487056af75a831aa (patch)
tree3edc23d65bcb1b00cf38c6b838086733ceb215f7 /tools/reproduceriter.py
parent46b2bbfd1772870b36ec5d4fb53a0d8522f4e3d9 (diff)
basic BlobBuilder support in shell replay
Diffstat (limited to 'tools/reproduceriter.py')
-rwxr-xr-xtools/reproduceriter.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tools/reproduceriter.py b/tools/reproduceriter.py
index 5eb02fb7..755aa1fc 100755
--- a/tools/reproduceriter.py
+++ b/tools/reproduceriter.py
@@ -220,6 +220,9 @@ if (typeof nagivator == 'undefined') {
},
};
}
+ case 'status-text': case 'progress': {
+ return {};
+ }
default: throw 'getElementById: ' + id;
}
},
@@ -349,6 +352,19 @@ if (typeof nagivator == 'undefined') {
print(x);
},
};
+ var MozBlobBuilder = function() {
+ this.data = new Uint8Array(0);
+ this.append = function(buffer) {
+ var data = new Uint8Array(buffer);
+ var combined = new Uint8Array(this.data.length + data.length);
+ combined.set(this.data);
+ combined.set(data, this.data.length);
+ this.data = combined;
+ };
+ this.getBlob = function() {
+ return this.data.buffer; // XXX we should change this
+ };
+ };
}
var Recorder = (function() {