testing out reading pages straight from a cbz file

This commit is contained in:
Bala Clark 2013-03-25 07:32:37 +01:00
parent 5d20759dcc
commit 291b1e411f
53 changed files with 10269 additions and 0 deletions

16
lib/zip.js/tests/util.js Executable file
View file

@ -0,0 +1,16 @@
function createTempFile(callback) {
var TMP_FILENAME = "file.tmp";
requestFileSystem(TEMPORARY, 4 * 1024 * 1024 * 1024, function(filesystem) {
function create() {
filesystem.root.getFile(TMP_FILENAME, {
create : true
}, function(entry) {
callback(entry);
}, onerror);
}
filesystem.root.getFile(TMP_FILENAME, null, function(entry) {
entry.remove(create, create);
}, create);
});
}