2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x[someVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "34a84c5fb21b25b173aca33ee72df362b955f3ee",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "ccca96ceb275d35019acee7af10cec4dcb9c140e"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x[someOtherVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x[someVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "ccca96ceb275d35019acee7af10cec4dcb9c140e",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "14446e4157483ffafdd7e5ed66d7093ab0a6076b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'someOtherVariable' identifier with the 'someVariable' identifier in the x[someVariable] subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "14446e4157483ffafdd7e5ed66d7093ab0a6076b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "1d98a4fb0a9300fc55f4533eb6f30e75e4a3be3b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
15
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
3
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'someVariable' identifier with the 'someOtherVariable' identifier in the x[someOtherVariable] subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "1d98a4fb0a9300fc55f4533eb6f30e75e4a3be3b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "4a34ec4c1e6412c882409c83c46b8d2612543cbd"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x[someOtherVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x[someVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'x[someOtherVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "4a34ec4c1e6412c882409c83c46b8d2612543cbd",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "cc7e39b323d13e1f410286e56d0fb0128950d715"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
16
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x[someVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "cc7e39b323d13e1f410286e56d0fb0128950d715",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "f21d7b5aa1767f892bf1d76df7ade14f62d7e749"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-variable.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "subscript-access-variable.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'x[someOtherVariable]' subscript access",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-variable.js"
|
|
|
|
],
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha1": "f21d7b5aa1767f892bf1d76df7ade14f62d7e749",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:00:34 +03:00
|
|
|
"sha2": "6157ae1cfd3503d356c628a06d397a81757e54f4"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|