[spec] removing filsystem init

This commit is contained in:
Ryan Willoughby
2013-05-29 17:08:48 -07:00
parent fceafa235a
commit 507c726215
-18
View File
@@ -49,20 +49,8 @@
<script type="text/javascript" src="barcodescanner.tests.js"></script>
<script type="text/javascript">
var root, temp_root, persistent_root;
document.addEventListener('deviceready', function () {
// one-time retrieval of the root file system entry
var onError = function(e) {
console.log('[ERROR] Problem setting up root filesystem for test running! Error to follow.');
console.log(JSON.stringify(e));
};
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0,
function(fileSystem) {
console.log('File API test Init: Setting PERSISTENT FS.');
root = fileSystem.root; // set in file.tests.js
persistent_root = root;
// Once root is set up, fire off tests
var jasmineEnv = jasmine.getEnv();
@@ -77,12 +65,6 @@
};
jasmineEnv.execute();
}, onError);
window.requestFileSystem(LocalFileSystem.TEMPORARY, 0,
function(fileSystem) {
console.log('File API test Init: Setting TEMPORARY FS.');
temp_root = fileSystem.root; // set in file.tests.js
}, onError);
}, false);
</script>
</head>