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
This commit is contained in:
Andy
2017-03-19 14:03:11 -07:00
committed by Daniel Tschinder
parent 82b7872cb8
commit 0545173f66
1379 changed files with 12566 additions and 11513 deletions

View File

@@ -68,7 +68,8 @@
"end": {
"line": 1,
"column": 3
}
},
"identifierName": "log"
},
"name": "log"
},
@@ -85,7 +86,8 @@
"end": {
"line": 1,
"column": 5
}
},
"identifierName": "n"
},
"name": "n"
},

View File

@@ -54,12 +54,14 @@
"end": {
"line": 1,
"column": 12
}
},
"identifierName": "log"
},
"name": "log"
},
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
@@ -73,7 +75,8 @@
"end": {
"line": 1,
"column": 14
}
},
"identifierName": "n"
},
"name": "n"
},
@@ -89,7 +92,8 @@
"end": {
"line": 1,
"column": 18
}
},
"identifierName": "op"
},
"name": "op"
},
@@ -105,7 +109,8 @@
"end": {
"line": 1,
"column": 23
}
},
"identifierName": "val"
},
"name": "val"
}
@@ -124,9 +129,11 @@
"column": 29
}
},
"body": []
"body": [],
"directives": []
}
}
]
],
"directives": []
}
}

View File

@@ -54,7 +54,8 @@
"end": {
"line": 1,
"column": 9
}
},
"identifierName": "Foo"
},
"name": "Foo"
},
@@ -88,6 +89,7 @@
"column": 23
}
},
"static": false,
"computed": false,
"key": {
"type": "Identifier",
@@ -101,15 +103,16 @@
"end": {
"line": 1,
"column": 15
}
},
"identifierName": "bar"
},
"name": "bar"
},
"static": false,
"kind": "method",
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
@@ -123,7 +126,8 @@
"end": {
"line": 1,
"column": 17
}
},
"identifierName": "a"
},
"name": "a"
}

View File

@@ -59,6 +59,7 @@
"id": null,
"generator": false,
"expression": true,
"async": false,
"params": [
{
"type": "Identifier",
@@ -72,7 +73,8 @@
"end": {
"line": 1,
"column": 2
}
},
"identifierName": "x"
},
"name": "x"
},
@@ -88,7 +90,8 @@
"end": {
"line": 1,
"column": 5
}
},
"identifierName": "y"
},
"name": "y"
}