mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
341 lines
11 KiB
JSON
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": "f9efef1bec9d9203920e566833e7c5340508b05d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "664a52df2195deea6960e9f08364a3b7356988a9"
|
|
}
|
|
,{
|
|
"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": "664a52df2195deea6960e9f08364a3b7356988a9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b3e7c4607a7f5fe0716473aad454ad3409a8ade"
|
|
}
|
|
,{
|
|
"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": "9b3e7c4607a7f5fe0716473aad454ad3409a8ade",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "06d1e0b6477d2fe2e1ae67c621b3064188c70761"
|
|
}
|
|
,{
|
|
"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": "06d1e0b6477d2fe2e1ae67c621b3064188c70761",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "06da0813d2316f6ffb986a4650ee32db29db2651"
|
|
}
|
|
,{
|
|
"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": "06da0813d2316f6ffb986a4650ee32db29db2651",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "cd084e758faae97137c079f578ba6a8f2d440c4e"
|
|
}
|
|
,{
|
|
"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": "cd084e758faae97137c079f578ba6a8f2d440c4e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "3ab93ac03ad6b649b2e6d2c5bf010b7a9a59be14"
|
|
}
|
|
,{
|
|
"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": "3ab93ac03ad6b649b2e6d2c5bf010b7a9a59be14",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "17e9074250852b119cf7a060b1ca98af0fe01386"
|
|
}]
|