diff options
Diffstat (limited to 'test/gen-spec-js.py')
-rwxr-xr-x | test/gen-spec-js.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/gen-spec-js.py b/test/gen-spec-js.py index 11372abd..5b7df621 100755 --- a/test/gen-spec-js.py +++ b/test/gen-spec-js.py @@ -422,8 +422,10 @@ class JSWriter(object): command.get('name', '$$'))) def _WriteAssertModuleCommand(self, command): - self.out_file.write('%s("%s");\n' % (command['type'], - self._Module(command['filename']))) + # Don't bother writing out text modules; they can't be parsed by JS. + if command['module_type'] == 'binary': + self.out_file.write('%s("%s");\n' % (command['type'], + self._Module(command['filename']))) def _WriteAssertReturnCommand(self, command): expected = command['expected'] |