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-27 20:44:36 -05: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": "f984509c7909a184e59f893fbb5fb1ff04034d93",
"gitDir": "test/corpus/repos/javascript",
"sha2": "981bde314c38d388c59964330ec4c91c48d52358"
}
,{
"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": "981bde314c38d388c59964330ec4c91c48d52358",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d55327960c6cc3938e99e0b88fce8bebff757ade"
}
,{
"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": "d55327960c6cc3938e99e0b88fce8bebff757ade",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d04bafae8657f555912edfbee5a0ce2b8d723170"
}
,{
"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": "d04bafae8657f555912edfbee5a0ce2b8d723170",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2ade3d15e4b915691d461a17ecdc0217afc0124c"
}
,{
"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": "2ade3d15e4b915691d461a17ecdc0217afc0124c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "160c2e45118adfc2bc9b60ef470bf8af3b4e415c"
}
,{
"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": "160c2e45118adfc2bc9b60ef470bf8af3b4e415c",
"gitDir": "test/corpus/repos/javascript",
"sha2": "75fe6e1e317e081c26798500340e41ab8848a8c0"
}
,{
"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": "75fe6e1e317e081c26798500340e41ab8848a8c0",
"gitDir": "test/corpus/repos/javascript",
"sha2": "a1d8c5a1b50ca005ba6100bf303ed94c4e9a4b66"
}]