Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Commit

Permalink
[spec] removing filsystem init
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Willoughby committed May 30, 2013
1 parent fceafa2 commit 507c726
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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>
Expand Down

0 comments on commit 507c726

Please sign in to comment.