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

187 lines
4.1 KiB
JSON

{
"type": "File",
"start": 0,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"program": {
"type": "Program",
"start": 0,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"sourceType": "script",
"body": [
{
"type": "WhileStatement",
"start": 0,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 2,
"column": 18
}
},
"test": {
"type": "BooleanLiteral",
"start": 7,
"end": 11,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 11
}
},
"value": true
},
"body": {
"type": "BlockStatement",
"start": 13,
"end": 55,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 2,
"column": 18
}
},
"body": [
{
"type": "ContinueStatement",
"start": 15,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 23
}
},
"label": null,
"leadingComments": null,
"trailingComments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 24,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 2,
"column": 10
}
}
}
]
},
{
"type": "ExpressionStatement",
"start": 47,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 16
}
},
"expression": {
"type": "Identifier",
"start": 47,
"end": 52,
"loc": {
"start": {
"line": 2,
"column": 10
},
"end": {
"line": 2,
"column": 15
},
"identifierName": "there"
},
"name": "there",
"leadingComments": null
},
"leadingComments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 24,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 2,
"column": 10
}
}
}
]
}
],
"directives": []
}
}
],
"directives": []
},
"comments": [
{
"type": "CommentBlock",
"value": " Multiline\nComment ",
"start": 24,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 24
},
"end": {
"line": 2,
"column": 10
}
}
}
]
}