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

207 lines
5.1 KiB
JSON

{
"type": "File",
"start": 0,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
},
"program": {
"type": "Program",
"start": 0,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
},
"sourceType": "script",
"body": [
{
"type": "ClassDeclaration",
"start": 0,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
},
"id": {
"type": "Identifier",
"start": 6,
"end": 9,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
},
"identifierName": "Foo"
},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 10,
"end": 50,
"loc": {
"start": {
"line": 1,
"column": 10
},
"end": {
"line": 1,
"column": 50
}
},
"body": [
{
"type": "ClassMethod",
"start": 12,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 12
},
"end": {
"line": 1,
"column": 48
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
"start": 18,
"end": 21,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 21
},
"identifierName": "bar"
},
"name": "bar"
},
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": true,
"params": [
{
"type": "Identifier",
"start": 22,
"end": 29,
"loc": {
"start": {
"line": 1,
"column": 22
},
"end": {
"line": 1,
"column": 29
},
"identifierName": "promise"
},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start": 31,
"end": 48,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 48
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 33,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 46
}
},
"expression": {
"type": "AwaitExpression",
"start": 33,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 33
},
"end": {
"line": 1,
"column": 46
}
},
"argument": {
"type": "Identifier",
"start": 39,
"end": 46,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 46
},
"identifierName": "promise"
},
"name": "promise"
}
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}