1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-variable.json
2016-10-13 17:58:17 -04:00

287 lines
9.1 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
16
]
}
},
"summary": "Added the 'x[someVariable]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "0f61a1f38c094d81eb1678aeedf2f25234fe804b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "e980a08c4bcb0c76d16e090fefd658bf515c252c"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Added the 'x[someOtherVariable]' subscript access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
16
]
}
},
"summary": "Added the 'x[someVariable]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "e980a08c4bcb0c76d16e090fefd658bf515c252c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d9c7151778f62f6e86e39b8719a82d0eb41b2b99"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherVariable' identifier with the 'someVariable' identifier in the x[someVariable] subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "d9c7151778f62f6e86e39b8719a82d0eb41b2b99",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b04d144546dfa4b9f00c7990452b4db35293fc6c"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someVariable' identifier with the 'someOtherVariable' identifier in the x[someOtherVariable] subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "b04d144546dfa4b9f00c7990452b4db35293fc6c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4ce5a760f6d3e64d4ee99970dcb2fb9a2db7f0f0"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'x[someOtherVariable]' subscript access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
16
]
}
},
"summary": "Deleted the 'x[someVariable]' subscript access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
21
]
}
},
"summary": "Added the 'x[someOtherVariable]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "4ce5a760f6d3e64d4ee99970dcb2fb9a2db7f0f0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "422ae2dad1b2c66363793f4187e0fb9fe6c507c8"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
16
]
}
},
"summary": "Deleted the 'x[someVariable]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "422ae2dad1b2c66363793f4187e0fb9fe6c507c8",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2aafa630f55788695758802fc9b684f103f20b36"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
21
]
}
},
"summary": "Deleted the 'x[someOtherVariable]' subscript access"
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
"sha1": "2aafa630f55788695758802fc9b684f103f20b36",
"gitDir": "test/corpus/repos/javascript",
"sha2": "aefedbf638db33f84e4f0cad98e38f1830be6cea"
}]