mirror of
https://github.com/classilla/tenfourfox.git
synced 2025-02-08 16:30:29 +00:00
32 lines
875 B
JavaScript
32 lines
875 B
JavaScript
|
/**
|
||
|
* Any copyright is dedicated to the Public Domain.
|
||
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
||
|
*/
|
||
|
|
||
|
var testGenerator;
|
||
|
|
||
|
function runTest()
|
||
|
{
|
||
|
SimpleTest.waitForExplicitFinish();
|
||
|
|
||
|
SpecialPowers.pushPrefEnv({'set': [ ["dom.archivereader.enabled", true] ]}, function() {
|
||
|
SpecialPowers.createFiles(filesToCreate(),
|
||
|
function (files) {
|
||
|
testGenerator = testSteps(files);
|
||
|
return testGenerator.next();
|
||
|
},
|
||
|
function (msg) {
|
||
|
ok(false, "File creation error: " + msg);
|
||
|
finishTest();
|
||
|
});
|
||
|
});
|
||
|
}
|
||
|
|
||
|
function finishTest()
|
||
|
{
|
||
|
SpecialPowers.popPrefEnv(function() {
|
||
|
testGenerator.close();
|
||
|
SimpleTest.finish();
|
||
|
});
|
||
|
}
|