mirror of
https://github.com/github/semantic.git
synced 2024-12-30 02:14:20 +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": "f90a3adaa2c74802e218415dbf5e97a2bc98edd6",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "47e35f990e572949549e96a1f0394c46d1b83457"
|
|
}
|
|
,{
|
|
"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": "47e35f990e572949549e96a1f0394c46d1b83457",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "976277ae0a88c56692c8f16fbf4835bfa38cb45f"
|
|
}
|
|
,{
|
|
"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": "976277ae0a88c56692c8f16fbf4835bfa38cb45f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8fd4f80abc4f79eb8013a84925a5ae67cd88342e"
|
|
}
|
|
,{
|
|
"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": "8fd4f80abc4f79eb8013a84925a5ae67cd88342e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "2db392acb1f07efdde3d79a7287ce267c8353b7c"
|
|
}
|
|
,{
|
|
"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": "2db392acb1f07efdde3d79a7287ce267c8353b7c",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "79412c4439f3638bfd2cd55ac0d067253404782e"
|
|
}
|
|
,{
|
|
"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": "79412c4439f3638bfd2cd55ac0d067253404782e",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "644f8f4ad6fb72187fcad570e5d6c6172f4ba2ee"
|
|
}
|
|
,{
|
|
"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": "644f8f4ad6fb72187fcad570e5d6c6172f4ba2ee",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "181d9807930d201a183c1799b271ec7d6267a26d"
|
|
}]
|