Andy 0545173f66 Test runner: Detect extra property in 'actual' but not in 'expected'. (#407)
* Test runner: Detect extra property in 'actual' but not in 'expected'.

Also update all expected.json where this would result in errors.

* Include rmExpected.js script in case it is needed again
2017-03-19 22:03:11 +01:00

173 lines
3.7 KiB
JSON

{
"type": "File",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"program": {
"type": "Program",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"sourceType": "script",
"body": [
{
"type": "BlockStatement",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"body": [
{
"type": "ThrowStatement",
"start": 2,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 2
},
"end": {
"line": 1,
"column": 13
}
},
"argument": {
"type": "Identifier",
"start": 8,
"end": 13,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 13
},
"identifierName": "error"
},
"name": "error",
"leadingComments": null,
"trailingComments": null
},
"trailingComments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 13,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 2,
"column": 10
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 36,
"end": 42,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 16
}
},
"expression": {
"type": "Identifier",
"start": 36,
"end": 41,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "error"
},
"name": "error",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 13,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 2,
"column": 10
}
}
}
]
}
],
"directives": []
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 13,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 2,
"column": 10
}
}
}
]
}