-
-
Save tobie/ba05228b7377b812650c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tobie-Langels-MacBook-Air:webidl2.js tobielangel$ npm test | |
> webidl2@2.0.4 test /Users/tobielangel/projects/webidl2.js | |
> mocha | |
Parses all of the invalid IDLs to check that they blow up correctly | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/enum.wi ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/enum.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/module. ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/module.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/nonnull ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/nonnullableany.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/nonnull ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/nonnullableobjects.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/raises. ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/raises.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/scopedn ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/scopedname.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/sequenc ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/sequenceAsAttribute.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/special ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/special-omittable.widl | |
◦ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/stringc ✓ should produce the right error for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/invalid/idl/stringconstants.idl | |
Parses all of the IDLs to produce the correct ASTs | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/allowany.wid ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/allowany.widl | |
✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/array.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/attributes.w ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/attributes.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/callback.wid ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/callback.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/caller.widl: ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/caller.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/constants.widl: { | |
"0": { | |
"type": [ | |
"interface", | |
"typedef" | |
], | |
"typeExtAttrs": [ | |
[] | |
], | |
"idlType": [ | |
{ | |
"sequence": false, | |
"nullable": true, | |
"array": false, | |
"union": false, | |
"idlType": "short" | |
} | |
], | |
"name": [ | |
"Util", | |
"Foo" | |
], | |
"partial": [ | |
false, | |
0, | |
0 | |
], | |
"members": [ | |
[ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "boolean", | |
"name": "DEBUG", | |
"value": { | |
"type": "boolean", | |
"value": false | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "short", | |
"name": "negative", | |
"value": { | |
"type": "number", | |
"value": -1 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "octet", | |
"name": "LF", | |
"value": { | |
"type": "number", | |
"value": 10 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unsigned long", | |
"name": "BIT_MASK", | |
"value": { | |
"type": "number", | |
"value": 64512 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "float", | |
"name": "AVOGADRO", | |
"value": { | |
"type": "number", | |
"value": 6.022e+23 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unrestricted float", | |
"name": "sobig", | |
"value": { | |
"type": "Infinity", | |
"negative": false | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unrestricted double", | |
"name": "minusonedividedbyzero", | |
"value": { | |
"type": "Infinity", | |
"negative": true | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "short", | |
"name": "notanumber", | |
"value": { | |
"type": "NaN" | |
}, | |
"extAttrs": [] | |
} | |
], | |
0, | |
0 | |
], | |
"inheritance": [ | |
null, | |
0, | |
0 | |
] | |
}, | |
"1": { | |
"type": [ | |
"exception", | |
"interface" | |
], | |
"name": [ | |
"Error", | |
"Util" | |
], | |
"partial": [ | |
false | |
], | |
"members": { | |
"0": { | |
"idlType": [ | |
"short", | |
"boolean" | |
], | |
"name": [ | |
"ERR_UNKNOWN", | |
"DEBUG" | |
], | |
"value": { | |
"type": [ | |
"number", | |
"boolean" | |
], | |
"value": [ | |
0, | |
false | |
] | |
} | |
}, | |
"1": { | |
"name": [ | |
"ERR_OUT_OF_MEMORY", | |
"negative" | |
], | |
"value": { | |
"value": [ | |
1, | |
-1 | |
] | |
} | |
}, | |
"2": { | |
"type": [ | |
"field", | |
"const" | |
], | |
"nullable": [ | |
false | |
], | |
"idlType": [ | |
{ | |
"sequence": false, | |
"nullable": false, | |
"array": false, | |
"union": false, | |
"idlType": "short" | |
}, | |
"octet" | |
], | |
"name": [ | |
"errorCode", | |
"LF" | |
], | |
"value": [ | |
{ | |
"type": "number", | |
"value": 10 | |
} | |
] | |
}, | |
"3": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unsigned long", | |
"name": "BIT_MASK", | |
"value": { | |
"type": "number", | |
"value": 64512 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"4": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "float", | |
"name": "AVOGADRO", | |
"value": { | |
"type": "number", | |
"value": 6.022e+23 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"5": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "float", | |
"name": "half", | |
"value": { | |
"type": "number", | |
"value": 0.5 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"6": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "float", | |
"name": "one", | |
"value": { | |
"type": "number", | |
"value": 0.01 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"7": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "float", | |
"name": "ten", | |
"value": { | |
"type": "number", | |
"value": 100 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"8": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unrestricted float", | |
"name": "sobig", | |
"value": { | |
"type": "Infinity", | |
"negative": false | |
}, | |
"extAttrs": [] | |
} | |
], | |
"9": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "unrestricted double", | |
"name": "minusonedividedbyzero", | |
"value": { | |
"type": "Infinity", | |
"negative": true | |
}, | |
"extAttrs": [] | |
} | |
], | |
"10": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "short", | |
"name": "notanumber", | |
"value": { | |
"type": "NaN" | |
}, | |
"extAttrs": [] | |
} | |
], | |
"11": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "Foo", | |
"name": "bar", | |
"value": { | |
"type": "number", | |
"value": 3 | |
}, | |
"extAttrs": [] | |
} | |
], | |
"_t": "a" | |
} | |
}, | |
"2": [ | |
{ | |
"type": "exception", | |
"name": "Error", | |
"members": [ | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "short", | |
"name": "ERR_UNKNOWN", | |
"value": { | |
"type": "number", | |
"value": 0 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "const", | |
"nullable": false, | |
"idlType": "short", | |
"name": "ERR_OUT_OF_MEMORY", | |
"value": { | |
"type": "number", | |
"value": 1 | |
}, | |
"extAttrs": [] | |
}, | |
{ | |
"type": "field", | |
"name": "errorCode", | |
"idlType": { | |
"sequence": false, | |
"nullable": false, | |
"array": false, | |
"union": false, | |
"idlType": "short" | |
}, | |
"extAttrs": [] | |
} | |
], | |
"inheritance": null, | |
"extAttrs": [] | |
} | |
], | |
"_t": "a" | |
} | |
Error: expected { '0': | |
{ type: [ 'interface', 'typedef' ], | |
typeExtAttrs: [ [] ], | |
idlType: [ [Object] ], | |
name: [ 'Util', 'Foo' ], | |
partial: [ false, 0, 0 ], | |
members: [ [Object], 0, 0 ], | |
inheritance: [ null, 0, 0 ] }, | |
'1': | |
{ type: [ 'exception', 'interface' ], | |
name: [ 'Error', 'Util' ], | |
partial: [ false ], | |
members: | |
{ '0': [Object], | |
'1': [Object], | |
'2': [Object], | |
'3': [Object], | |
'4': [Object], | |
'5': [Object], | |
'6': [Object], | |
'7': [Object], | |
'8': [Object], | |
'9': [Object], | |
'10': [Object], | |
'11': [Object], | |
_t: 'a' } }, | |
'2': | |
[ { type: 'exception', | |
name: 'Error', | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
_t: 'a' } to equal undefined | |
1) should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/constants.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/constructor. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/constructor.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/dictionary-i ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/dictionary-inherits.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/dictionary.w ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/dictionary.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/documentatio ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/documentation-dos.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/documentatio ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/documentation.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/enum.widl: { | |
"0": { | |
"values": { | |
"3": [ | |
"with line\nreturn" | |
], | |
"_t": "a" | |
} | |
}, | |
"_t": "a" | |
} | |
Error: expected { '0': { values: { '3': [Object], _t: 'a' } }, | |
_t: 'a' } to equal undefined | |
2) should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/enum.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/equivalent-d ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/equivalent-decl.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/exception-in ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/exception-inheritance.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/exception.wi ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/exception.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/getter-sette ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/getter-setter.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/identifier-q ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/identifier-qualified-names.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/implements.w ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/implements.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/indexed-prop ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/indexed-properties.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/inherits-get ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/inherits-getter.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/interface-in ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/interface-inherits.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/iterator.wid ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/iterator.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/mapclass.widl: Error: ENOENT, no such file or directory '/Users/tobielangel/projects/webidl2.js/test/json/mapclass.json' | |
3) should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/mapclass.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/namedconstru ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/namedconstructor.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nointerfaceo ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nointerfaceobject.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nullable.wid ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nullable.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nullableobje ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/nullableobjects.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/operation-op ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/operation-optional-arg.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/overloading. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/overloading.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/overridebuil ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/overridebuiltins.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/partial-inte ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/partial-interface.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/primitives.w ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/primitives.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/prototyperoo ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/prototyperoot.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/putforwards. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/putforwards.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/reg-operatio ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/reg-operations.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/replaceable. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/replaceable.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/sequence.wid ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/sequence.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/serializer.widl: { | |
"10": [ | |
{ | |
"type": "interface", | |
"name": "Account9", | |
"partial": false, | |
"members": [ | |
{ | |
"type": "serializer", | |
"patternList": true, | |
"names": [], | |
"extAttrs": [] | |
} | |
], | |
"inheritance": null, | |
"extAttrs": [] | |
} | |
], | |
"11": [ | |
{ | |
"type": "interface", | |
"name": "Account10", | |
"partial": false, | |
"members": [ | |
{ | |
"type": "serializer", | |
"patternMap": true, | |
"names": [], | |
"extAttrs": [] | |
} | |
], | |
"inheritance": null, | |
"extAttrs": [] | |
} | |
], | |
"12": [ | |
{ | |
"type": "interface", | |
"name": "Account11", | |
"partial": false, | |
"members": [ | |
{ | |
"type": "attribute", | |
"static": false, | |
"stringifier": false, | |
"inherit": false, | |
"readonly": false, | |
"idlType": { | |
"sequence": false, | |
"nullable": false, | |
"array": false, | |
"union": false, | |
"idlType": "DOMString" | |
}, | |
"name": "secondname", | |
"extAttrs": [] | |
}, | |
{ | |
"type": "attribute", | |
"static": false, | |
"stringifier": false, | |
"inherit": false, | |
"readonly": false, | |
"idlType": { | |
"sequence": false, | |
"nullable": false, | |
"array": false, | |
"union": false, | |
"idlType": "DOMString" | |
}, | |
"name": "thirdname", | |
"extAttrs": [] | |
}, | |
{ | |
"type": "serializer", | |
"patternMap": true, | |
"names": [ | |
"inherit", | |
"secondname", | |
"thirdname" | |
], | |
"extAttrs": [] | |
} | |
], | |
"inheritance": "Account", | |
"extAttrs": [] | |
} | |
], | |
"13": [ | |
{ | |
"type": "interface", | |
"name": "Account12", | |
"partial": false, | |
"members": [ | |
{ | |
"type": "attribute", | |
"static": false, | |
"stringifier": false, | |
"inherit": false, | |
"readonly": false, | |
"idlType": { | |
"sequence": false, | |
"nullable": false, | |
"array": false, | |
"union": false, | |
"idlType": "DOMString" | |
}, | |
"name": "secondname", | |
"extAttrs": [] | |
}, | |
{ | |
"type": "serializer", | |
"patternMap": true, | |
"names": [ | |
"inherit" | |
], | |
"extAttrs": [] | |
} | |
], | |
"inheritance": "Account", | |
"extAttrs": [] | |
} | |
], | |
"_t": "a" | |
} | |
Error: expected { '10': | |
[ { type: 'interface', | |
name: 'Account9', | |
partial: false, | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
'11': | |
[ { type: 'interface', | |
name: 'Account10', | |
partial: false, | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
'12': | |
[ { type: 'interface', | |
name: 'Account11', | |
partial: false, | |
members: [Object], | |
inheritance: 'Account', | |
extAttrs: [] } ], | |
'13': | |
[ { type: 'interface', | |
name: 'Account12', | |
partial: false, | |
members: [Object], | |
inheritance: 'Account', | |
extAttrs: [] } ], | |
_t: 'a' } to equal undefined | |
4) should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/serializer.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/static.widl: ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/static.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier- ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier-attribute.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier- ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier-custom.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/stringifier.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/treatasnull. ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/treatasnull.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/treatasundef ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/treatasundefined.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/typedef.widl ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/typedef.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/typesuffixes ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/typesuffixes.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/uniontype.widl: { | |
"0": { | |
"members": { | |
"0": { | |
"idlType": { | |
"idlType": { | |
"0": { | |
"array": [ | |
false, | |
1 | |
], | |
"idlType": [ | |
"float", | |
"any" | |
], | |
"nullableArray": [ | |
[ | |
false | |
] | |
] | |
}, | |
"_t": "a" | |
} | |
} | |
}, | |
"_t": "a" | |
} | |
}, | |
"_t": "a" | |
} | |
Error: expected { '0': { members: { '0': [Object], _t: 'a' } }, | |
_t: 'a' } to equal undefined | |
5) should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/uniontype.widl | |
◦ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/variadic-ope ✓ should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/variadic-operations.widl | |
✖ 5 of 57 tests failed: | |
1) Parses all of the IDLs to produce the correct ASTs should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/constants.widl: | |
Error: expected { '0': | |
{ type: [ 'interface', 'typedef' ], | |
typeExtAttrs: [ [] ], | |
idlType: [ [Object] ], | |
name: [ 'Util', 'Foo' ], | |
partial: [ false, 0, 0 ], | |
members: [ [Object], 0, 0 ], | |
inheritance: [ null, 0, 0 ] }, | |
'1': | |
{ type: [ 'exception', 'interface' ], | |
name: [ 'Error', 'Util' ], | |
partial: [ false ], | |
members: | |
{ '0': [Object], | |
'1': [Object], | |
'2': [Object], | |
'3': [Object], | |
'4': [Object], | |
'5': [Object], | |
'6': [Object], | |
'7': [Object], | |
'8': [Object], | |
'9': [Object], | |
'10': [Object], | |
'11': [Object], | |
_t: 'a' } }, | |
'2': | |
[ { type: 'exception', | |
name: 'Error', | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
_t: 'a' } to equal undefined | |
at Assertion.assert (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:99:13) | |
at Assertion.be.Assertion.equal (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:200:10) | |
at Assertion.(anonymous function) [as be] (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:73:24) | |
at Context.<anonymous> (/Users/tobielangel/projects/webidl2.js/test/syntax.js:26:37) | |
at Test.Runnable.run (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runnable.js:213:32) | |
at Runner.runTest (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:246:5 | |
at process._tickCallback (node.js:415:13) | |
at Function.Module.runMain (module.js:499:11) | |
at startup (node.js:119:16) | |
at node.js:901:3 | |
2) Parses all of the IDLs to produce the correct ASTs should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/enum.widl: | |
Error: expected { '0': { values: { '3': [Object], _t: 'a' } }, | |
_t: 'a' } to equal undefined | |
at Assertion.assert (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:99:13) | |
at Assertion.be.Assertion.equal (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:200:10) | |
at Assertion.(anonymous function) [as be] (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:73:24) | |
at Context.<anonymous> (/Users/tobielangel/projects/webidl2.js/test/syntax.js:26:37) | |
at Test.Runnable.run (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runnable.js:213:32) | |
at Runner.runTest (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:246:5 | |
at process._tickCallback (node.js:415:13) | |
at Function.Module.runMain (module.js:499:11) | |
at startup (node.js:119:16) | |
at node.js:901:3 | |
3) Parses all of the IDLs to produce the correct ASTs should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/mapclass.widl: | |
Error: ENOENT, no such file or directory '/Users/tobielangel/projects/webidl2.js/test/json/mapclass.json' | |
at Object.fs.openSync (fs.js:427:18) | |
at Object.fs.readFileSync (fs.js:284:15) | |
at Context.<anonymous> (/Users/tobielangel/projects/webidl2.js/test/syntax.js:23:55) | |
at Test.Runnable.run (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runnable.js:213:32) | |
at Runner.runTest (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:246:5 | |
at process._tickCallback (node.js:415:13) | |
at Function.Module.runMain (module.js:499:11) | |
at startup (node.js:119:16) | |
at node.js:901:3 | |
4) Parses all of the IDLs to produce the correct ASTs should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/serializer.widl: | |
Error: expected { '10': | |
[ { type: 'interface', | |
name: 'Account9', | |
partial: false, | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
'11': | |
[ { type: 'interface', | |
name: 'Account10', | |
partial: false, | |
members: [Object], | |
inheritance: null, | |
extAttrs: [] } ], | |
'12': | |
[ { type: 'interface', | |
name: 'Account11', | |
partial: false, | |
members: [Object], | |
inheritance: 'Account', | |
extAttrs: [] } ], | |
'13': | |
[ { type: 'interface', | |
name: 'Account12', | |
partial: false, | |
members: [Object], | |
inheritance: 'Account', | |
extAttrs: [] } ], | |
_t: 'a' } to equal undefined | |
at Assertion.assert (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:99:13) | |
at Assertion.be.Assertion.equal (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:200:10) | |
at Assertion.(anonymous function) [as be] (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:73:24) | |
at Context.<anonymous> (/Users/tobielangel/projects/webidl2.js/test/syntax.js:26:37) | |
at Test.Runnable.run (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runnable.js:213:32) | |
at Runner.runTest (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:246:5 | |
at process._tickCallback (node.js:415:13) | |
at Function.Module.runMain (module.js:499:11) | |
at startup (node.js:119:16) | |
at node.js:901:3 | |
5) Parses all of the IDLs to produce the correct ASTs should produce the same AST for /Users/tobielangel/projects/webidl2.js/test/widlproc/test/valid/idl/uniontype.widl: | |
Error: expected { '0': { members: { '0': [Object], _t: 'a' } }, | |
_t: 'a' } to equal undefined | |
at Assertion.assert (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:99:13) | |
at Assertion.be.Assertion.equal (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:200:10) | |
at Assertion.(anonymous function) [as be] (/Users/tobielangel/projects/webidl2.js/node_modules/expect.js/expect.js:73:24) | |
at Context.<anonymous> (/Users/tobielangel/projects/webidl2.js/test/syntax.js:26:37) | |
at Test.Runnable.run (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runnable.js:213:32) | |
at Runner.runTest (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:343:10) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:389:12 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:269:14) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:278:7 | |
at next (/Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:226:23) | |
at /Users/tobielangel/projects/webidl2.js/node_modules/mocha/lib/runner.js:246:5 | |
at process._tickCallback (node.js:415:13) | |
at Function.Module.runMain (module.js:499:11) | |
at startup (node.js:119:16) | |
at node.js:901:3 | |
npm ERR! Test failed. See above for more details. | |
npm ERR! not ok code 0 | |
Tobie-Langels-MacBook-Air:webidl2.js tobielangel$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment