We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4abde1 commit 997cde6Copy full SHA for 997cde6
3 files changed
test/index.html
@@ -20,6 +20,7 @@
20
<script src="../dist/virtualfs.js"></script>
21
<script src="testInit.js"></script>
22
<script src="test.worker.js"></script>
23
+<script src="test.browser.js"></script>
24
<script class="mocha-exec">
25
mocha.run();
26
</script>
test/test.browser.js
@@ -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
@@ -2,7 +2,7 @@
importScripts('../../dist/virtualfs.js');
function fsCheck() {
- if(Filer && Filer.fs){
+ if(Filer && Filer.fs && Filer.Shell){
postMessage('fsCheck.ok');
}
0 commit comments