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.6 KiB
JSON

{
"type": "File",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"program": {
"type": "Program",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"sourceType": "script",
"body": [
{
"type": "VariableDeclaration",
"start": 0,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 52
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 4,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 52
}
},
"id": {
"type": "Identifier",
"start": 4,
"end": 7,
"loc": {
"start": {
"line": 1,
"column": 4
},
"end": {
"line": 1,
"column": 7
},
"identifierName": "foo"
},
"name": "foo"
},
"init": {
"type": "FunctionExpression",
"start": 10,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 52
}
},
"id": null,
"generator": false,
"expression": false,
"async": true,
"params": [
{
"type": "Identifier",
"start": 25,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 32
},
"identifierName": "promise"
},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start": 34,
"end": 52,
"loc": {
"start": {
"line": 1,
"column": 34
},
"end": {
"line": 1,
"column": 52
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 36,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 50
}
},
"expression": {
"type": "AwaitExpression",
"start": 36,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 49
}
},
"argument": {
"type": "Identifier",
"start": 42,
"end": 49,
"loc": {
"start": {
"line": 1,
"column": 42
},
"end": {
"line": 1,
"column": 49
},
"identifierName": "promise"
},
"name": "promise"
}
}
}
],
"directives": []
}
}
}
],
"kind": "var"
}
],
"directives": []
}
}