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

316 lines
7.7 KiB
JSON

{
"type": "File",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
}
},
"program": {
"type": "Program",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
}
},
"sourceType": "script",
"body": [
{
"type": "TryStatement",
"start": 0,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 65
}
},
"block": {
"type": "BlockStatement",
"start": 4,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 17
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 6,
"end": 15,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 15
}
},
"expression": {
"type": "CallExpression",
"start": 6,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 14
}
},
"callee": {
"type": "Identifier",
"start": 6,
"end": 12,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 12
},
"identifierName": "doThat"
},
"name": "doThat"
},
"arguments": []
}
}
],
"directives": []
},
"handler": {
"type": "CatchClause",
"start": 18,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 38
}
},
"param": {
"type": "Identifier",
"start": 25,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 26
},
"identifierName": "e"
},
"name": "e"
},
"body": {
"type": "BlockStatement",
"start": 28,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 38
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 30,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 36
}
},
"expression": {
"type": "CallExpression",
"start": 30,
"end": 36,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 36
}
},
"callee": {
"type": "Identifier",
"start": 30,
"end": 33,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 33
},
"identifierName": "say"
},
"name": "say"
},
"arguments": [
{
"type": "Identifier",
"start": 34,
"end": 35,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 35
},
"identifierName": "e"
},
"name": "e"
}
]
}
}
],
"directives": []
}
},
"guardedHandlers": [],
"finalizer": {
"type": "BlockStatement",
"start": 47,
"end": 65,
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 65
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 49,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 63
}
},
"expression": {
"type": "CallExpression",
"start": 49,
"end": 63,
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 63
}
},
"callee": {
"type": "Identifier",
"start": 49,
"end": 56,
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 56
},
"identifierName": "cleanup"
},
"name": "cleanup"
},
"arguments": [
{
"type": "Identifier",
"start": 57,
"end": 62,
"loc": {
"start": {
"line": 1,
"column": 57
},
"end": {
"line": 1,
"column": 62
},
"identifierName": "stuff"
},
"name": "stuff"
}
]
}
}
],
"directives": []
}
}
],
"directives": []
}
}