2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "0a38cbb0dc46ccdf6a85eb82cfd1702afb266bac",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "f17c7e647d17c88e76157f48d58a43710d9f8d15"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'this.map(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "f17c7e647d17c88e76157f48d58a43710d9f8d15",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "df48ea9931d0b7596f69131680320c73080026d1"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'reduce' identifier with the 'map' identifier in the this.map(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
36
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
32
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.map(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.map(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "df48ea9931d0b7596f69131680320c73080026d1",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "27bac95cea0012c651e3ce2a835a4d8720bad48b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
12
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'map' identifier with the 'reduce' identifier in the this.reduce(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
32
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
36
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the this.reduce(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
38
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the this.reduce(…) method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "27bac95cea0012c651e3ce2a835a4d8720bad48b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "9cea77c1d3d51605b53ac00289cee931ea1a2359"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'this.reduce(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "9cea77c1d3d51605b53ac00289cee931ea1a2359",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "c8f10bef923b07232331fa6453bf098ed1ffbe0f"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'this.map(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "c8f10bef923b07232331fa6453bf098ed1ffbe0f",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "7060c31a4c8985ec7bea937ac90a427fee943955"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-chained-callbacks-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"chained-callbacks.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "chained-callbacks.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'this.reduce(…)' method call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"chained-callbacks.js"
|
|
|
|
],
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha1": "7060c31a4c8985ec7bea937ac90a427fee943955",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "69d03ecd07566e6fa325c378815462768d32a996"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|