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 18:54:47 +03:00
|
|
|
"sha1": "195a1d9a04af2cce44e8af09913140e80af6656f",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "7d1d4882288053a383c3aa95e23e9984182f32d0"
|
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 18:54:47 +03:00
|
|
|
"sha1": "7d1d4882288053a383c3aa95e23e9984182f32d0",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "b92a7a77b05f33eb98feb0b56335dc0e9abb3eef"
|
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 18:54:47 +03:00
|
|
|
"sha1": "b92a7a77b05f33eb98feb0b56335dc0e9abb3eef",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "317015fd398ef080136c5200ab496ce236ec85d6"
|
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 18:54:47 +03:00
|
|
|
"sha1": "317015fd398ef080136c5200ab496ce236ec85d6",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "ce83a72b91d364110f8c0b19b8db6de0d7dbe799"
|
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 18:54:47 +03:00
|
|
|
"sha1": "ce83a72b91d364110f8c0b19b8db6de0d7dbe799",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "4172e6ed8b75daaad3d5e914b048dca9ea598557"
|
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 18:54:47 +03:00
|
|
|
"sha1": "4172e6ed8b75daaad3d5e914b048dca9ea598557",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "c9ba7b286fbdb4cb5edb69dfd845ff4f0c7ef0ec"
|
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 18:54:47 +03:00
|
|
|
"sha1": "c9ba7b286fbdb4cb5edb69dfd845ff4f0c7ef0ec",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:54:47 +03:00
|
|
|
"sha2": "dbba8dcf3e630c86fb6e8eddc4fc93408e550277"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|