testing out reading pages straight from a cbz file
This commit is contained in:
parent
5d20759dcc
commit
291b1e411f
53 changed files with 10269 additions and 0 deletions
16
lib/zip.js/tests/util.js
Executable file
16
lib/zip.js/tests/util.js
Executable 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);
|
||||
});
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue