2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "b0363eb07d0284130aab04183573dcd31fa7f221",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "bd70642d89f84aa72ff6781a2b22c82b345ac1d5"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
73
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
63
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'key in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "bd70642d89f84aa72ff6781a2b22c82b345ac1d5",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "337a282c5bfdde568b4b1431a6259fd1e187d897"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'otherKey' identifier with the 'key' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
52
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
68
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
58
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'doOtherSomething' identifier with the 'doSomething' identifier in the doSomething() function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "337a282c5bfdde568b4b1431a6259fd1e187d897",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "b6039e1333c1772e592e7dc27a94de22b1323bb5"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
6
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'key' identifier with the 'otherKey' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
47
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
58
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
52
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
68
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'doSomething' identifier with the 'doOtherSomething' identifier in the doOtherSomething() function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "b6039e1333c1772e592e7dc27a94de22b1323bb5",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "0a764d4fa36759c678501ca540fc99713b41420a"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
73
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
63
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
73
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'otherKey in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "0a764d4fa36759c678501ca540fc99713b41420a",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "9fa99c92ac72ad519a3b1f2b5d93a5537d435a92"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'key in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "9fa99c92ac72ad519a3b1f2b5d93a5537d435a92",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "cbc52bfd4415f0b6ade8e057dc28ea23bb4525de"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-loop-with-in-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-loop-with-in-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "for-loop-with-in-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
73
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'otherKey in something && i = 0; i < n; i++' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-loop-with-in-statement.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "cbc52bfd4415f0b6ade8e057dc28ea23bb4525de",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "78d8fd6fdf97f596e0c6c4c7f4a6661bc3ffa357"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|