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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "e7588cafe7a823a1dce9ddba49bcb503476dc672",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "c37d0cae68a2013dfd17781ac2ff2d8b669ab9d7"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "c37d0cae68a2013dfd17781ac2ff2d8b669ab9d7",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "cf9ed207fbbfb8cb068aedf35c5a7d1c95440d06"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
25
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
18
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
35
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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 20:03:43 +03:00
|
|
|
"sha1": "cf9ed207fbbfb8cb068aedf35c5a7d1c95440d06",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "303102430bf2d88d6da7137cc5571aeef5f93224"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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 20:03:43 +03:00
|
|
|
"sha1": "303102430bf2d88d6da7137cc5571aeef5f93224",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "01a95973305ffa51292ab7a8a0970f690c1937e3"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'thing of things' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "01a95973305ffa51292ab7a8a0970f690c1937e3",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "84ebc837b7c11ee0b16b688e1029a411a3fd7327"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
43
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'item of items' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "84ebc837b7c11ee0b16b688e1029a411a3fd7327",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "710ddea57e61c8fe5d105dd26e5192efa8bd3e52"
|
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
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "for-of-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
46
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'thing of things' for statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"for-of-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "710ddea57e61c8fe5d105dd26e5192efa8bd3e52",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "9f4f05255cc1f41d2c7dcbe4a450082306db1db1"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|