Skip to content

Commit 997cde6

Browse files
committed
filer load in browser/worker tests from distribution
1 parent d4abde1 commit 997cde6

3 files changed

Lines changed: 11 additions & 1 deletion

File tree

test/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
<script src="../dist/virtualfs.js"></script>
2121
<script src="testInit.js"></script>
2222
<script src="test.worker.js"></script>
23+
<script src="test.browser.js"></script>
2324
<script class="mocha-exec">
2425
mocha.run();
2526
</script>

test/test.browser.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* global expect */
2+
3+
describe('Browser main tests', function () {
4+
it('Should load Filer in browser', function () {
5+
expect(Filer).to.exist;
6+
expect(Filer.fs).to.exist;
7+
expect(Filer.Shell).to.exist;
8+
});
9+
});

test/worker-task.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
importScripts('../../dist/virtualfs.js');
33

44
function fsCheck() {
5-
if(Filer && Filer.fs){
5+
if(Filer && Filer.fs && Filer.Shell){
66
postMessage('fsCheck.ok');
77
}
88
}

0 commit comments

Comments
 (0)