2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "5079af56f5049cde622a571fb286589b471549e5",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "7897caa7d3f395e6fc8421235775076903bfeea3"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'thing of things' 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
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "7897caa7d3f395e6fc8421235775076903bfeea3",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "764b4aec6e49bf027190ab1e5083bdd35a055279"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'things' identifier with the 'items' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'thing' identifier with the 'item' identifier in the process(item) function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "764b4aec6e49bf027190ab1e5083bdd35a055279",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "ed8939173ee392ec35dd13ff8fee4d4c6f93f985"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'items' identifier with the 'things' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'item' identifier with the 'thing' identifier in the process(thing) function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "ed8939173ee392ec35dd13ff8fee4d4c6f93f985",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "8be63f36f0484ba36f2de2a06801fe411b1b6bbc"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'thing of things' 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
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'item of items' 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
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'thing of things' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "8be63f36f0484ba36f2de2a06801fe411b1b6bbc",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "ae793daccac506e88da2f1d9e5bbe6a63f0c57e8"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "ae793daccac506e88da2f1d9e5bbe6a63f0c57e8",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "99cbdc5330a41c478311d2cdf679409e67ebb255"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-for-of-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"for-of-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'thing of things' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha1": "99cbdc5330a41c478311d2cdf679409e67ebb255",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 22:13:51 +03:00
|
|
|
"sha2": "c1166aa59e4b025c51e2a166a47413eba325ff1d"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|