1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/for-in-statement.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

395 lines
13 KiB
JSON

[{
"testCaseDescription": "javascript-for-in-statement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
35
]
}
},
"summary": "Added the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "90afab60996a573711423295c92c426d0fef52d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "46da1cb99ff152ed094d4e370972c214266e134a"
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Added the 'item in items' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
35
]
}
},
"summary": "Added the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "46da1cb99ff152ed094d4e370972c214266e134a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "474b07a2d45deb9ef5eb170123267392440d2561"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-insert-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
10
]
},
{
"start": [
1,
6
],
"end": [
1,
11
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
14
],
"end": [
1,
19
]
},
{
"start": [
1,
15
],
"end": [
1,
21
]
}
]
},
"summary": "Replaced the 'items' identifier with the 'things' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
23
],
"end": [
1,
27
]
},
{
"start": [
1,
25
],
"end": [
1,
30
]
}
]
},
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the thing() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "474b07a2d45deb9ef5eb170123267392440d2561",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f46b257de1383d21d9d5aa239a1b1ec4d6d7061f"
}
,{
"testCaseDescription": "javascript-for-in-statement-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"replace": [
{
"start": [
1,
6
],
"end": [
1,
11
]
},
{
"start": [
1,
6
],
"end": [
1,
10
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
15
],
"end": [
1,
21
]
},
{
"start": [
1,
14
],
"end": [
1,
19
]
}
]
},
"summary": "Replaced the 'things' identifier with the 'items' identifier"
},
{
"span": {
"replace": [
{
"start": [
1,
25
],
"end": [
1,
30
]
},
{
"start": [
1,
23
],
"end": [
1,
27
]
}
]
},
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the item() function call"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "f46b257de1383d21d9d5aa239a1b1ec4d6d7061f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6ebe367424567d044cf26c093bf00b27ee4f261b"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-replacement-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
32
]
}
},
"summary": "Added the 'item in items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "6ebe367424567d044cf26c093bf00b27ee4f261b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f71a64f1a8d98057f001fa757a144f253b70a19c"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
35
]
}
},
"summary": "Deleted the 'thing in things' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "f71a64f1a8d98057f001fa757a144f253b70a19c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8802178331eeeb9798f16bf23557729d99edf72a"
}
,{
"testCaseDescription": "javascript-for-in-statement-delete-rest-test",
"expectedResult": {
"changes": {
"for-in-statement.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
32
]
}
},
"summary": "Deleted the 'item in items' for statement"
}
]
},
"errors": {}
},
"filePaths": [
"for-in-statement.js"
],
"sha1": "8802178331eeeb9798f16bf23557729d99edf72a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2ae3dbb197d2af3f6c733f583bd1e46038782da2"
}]