1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/chained-property-access.json
2016-11-01 10:03:25 -05:00

341 lines
11 KiB
JSON

[{
"testCaseDescription": "javascript-chained-property-access-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'returned.promise().done(…).fail(…)' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "d634acd5aed3ab7ef4a9914234758a3bf356d2c4",
"gitDir": "test/corpus/repos/javascript",
"sha2": "723940f8df7814d9f0fb1ea03dddbff771d80ac8"
}
,{
"testCaseDescription": "javascript-chained-property-access-replacement-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Added the 'returned.promise().done(…).fail(…)' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'returned.promise().done(…).fail(…)' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "723940f8df7814d9f0fb1ea03dddbff771d80ac8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4d9c7053f056b963074f086d40020195bff90c32"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-insert-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
43
]
},
{
"start": [
1,
33
],
"end": [
1,
41
]
}
]
},
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
60
],
"end": [
1,
70
]
},
{
"start": [
1,
58
],
"end": [
1,
66
]
}
]
},
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…).fail(…) method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "4d9c7053f056b963074f086d40020195bff90c32",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b0faefc21e5b571d399056063f96cfbf810a503f"
}
,{
"testCaseDescription": "javascript-chained-property-access-replacement-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
33
],
"end": [
1,
41
]
},
{
"start": [
1,
33
],
"end": [
1,
43
]
}
]
},
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…) method call"
},
{
"span": {
"replace": [
{
"start": [
1,
58
],
"end": [
1,
66
]
},
{
"start": [
1,
60
],
"end": [
1,
70
]
}
]
},
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…).fail(…) method call"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "b0faefc21e5b571d399056063f96cfbf810a503f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ea742ea1e997a7a1241d1e719c3b313d8a42067c"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-replacement-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done(…).fail(…)' return statement"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Deleted the 'returned.promise().done(…).fail(…)' return statement"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
3,
1
]
}
},
"summary": "Added the 'returned.promise().done(…).fail(…)' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "ea742ea1e997a7a1241d1e719c3b313d8a42067c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "5517a9b89409234d2dc3cbf17aa526d72bc12479"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done(…).fail(…)' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "5517a9b89409234d2dc3cbf17aa526d72bc12479",
"gitDir": "test/corpus/repos/javascript",
"sha2": "66cacfd430f02a62b6976e31fdc0a53ae019dd5e"
}
,{
"testCaseDescription": "javascript-chained-property-access-delete-rest-test",
"expectedResult": {
"changes": {
"chained-property-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
2,
1
]
}
},
"summary": "Deleted the 'returned.promise().done(…).fail(…)' return statement"
}
]
},
"errors": {}
},
"filePaths": [
"chained-property-access.js"
],
"sha1": "66cacfd430f02a62b6976e31fdc0a53ae019dd5e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0dd5a42b7e992a63ee0e46bbbc58699dd09f6851"
}]