def test_fs_dict(self):
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.emcc_args += ['-lidbfs.js']
    self.emcc_args += ['-lnodefs.js']
    create_test_file('pre.js', "\n      Module = {};\n      Module['preRun'] = function() {\n        out(typeof FS.filesystems['MEMFS']);\n        out(typeof FS.filesystems['IDBFS']);\n        out(typeof FS.filesystems['NODEFS']);\n        // Globals\n        console.log(typeof MEMFS);\n        console.log(typeof IDBFS);\n        console.log(typeof NODEFS);\n      };\n    ")
    self.emcc_args += ['--pre-js', 'pre.js']
    self.do_run('int main() { return 0; }', 'object\nobject\nobject\nobject\nobject\nobject')
def test_fs_dict(self):
    self.set_setting('FORCE_FILESYSTEM', 1)
    self.emcc_args += ['-lidbfs.js']
    self.emcc_args += ['-lnodefs.js']
    create_test_file('pre.js', "\n      Module = {};\n      Module['preRun'] = function() {\n        out(typeof FS.filesystems['MEMFS']);\n        out(typeof FS.filesystems['IDBFS']);\n        out(typeof FS.filesystems['NODEFS']);\n        // Globals\n        console.log(typeof MEMFS);\n        console.log(typeof IDBFS);\n        console.log(typeof NODEFS);\n      };\n    ")
    self.emcc_args += ['--pre-js', 'pre.js']
    self.do_run('int main() { return 0; }', 'object\nobject\nobject\nobject\nobject\nobject')