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

153 lines
3.3 KiB
JSON

{
"type": "File",
"start": 0,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"program": {
"type": "Program",
"start": 0,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"sourceType": "script",
"body": [
{
"type": "FunctionDeclaration",
"start": 0,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 46
}
},
"id": {
"type": "Identifier",
"start": 15,
"end": 18,
"loc": {
"start": {
"line": 1,
"column": 15
},
"end": {
"line": 1,
"column": 18
},
"identifierName": "foo"
},
"name": "foo"
},
"generator": false,
"expression": false,
"async": true,
"params": [
{
"type": "Identifier",
"start": 19,
"end": 26,
"loc": {
"start": {
"line": 1,
"column": 19
},
"end": {
"line": 1,
"column": 26
},
"identifierName": "promise"
},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start": 28,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 28
},
"end": {
"line": 1,
"column": 46
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 30,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 44
}
},
"expression": {
"type": "AwaitExpression",
"start": 30,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 30
},
"end": {
"line": 1,
"column": 43
}
},
"argument": {
"type": "Identifier",
"start": 36,
"end": 43,
"loc": {
"start": {
"line": 1,
"column": 36
},
"end": {
"line": 1,
"column": 43
},
"identifierName": "promise"
},
"name": "promise"
}
}
}
],
"directives": []
}
}
],
"directives": []
}
}