1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-variable.json
2016-10-14 12:19:31 -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": "5903b9ccdd05fd26ba4069de7fdc8307a192feb7",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f6296f4db93455d17afebbc6c87cd49b6d6ed9ab"
}
,{
"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": "f6296f4db93455d17afebbc6c87cd49b6d6ed9ab",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2a9131e1f8253166b954393a23e5e9a37087ad7a"
}
,{
"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": "2a9131e1f8253166b954393a23e5e9a37087ad7a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "179a4b5e3be00dfb9da844cd9ac0e02c32cd9f8b"
}
,{
"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": "179a4b5e3be00dfb9da844cd9ac0e02c32cd9f8b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "2d600b483cc0e24fc9e58a7afad5300dd4a08696"
}
,{
"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": "2d600b483cc0e24fc9e58a7afad5300dd4a08696",
"gitDir": "test/corpus/repos/javascript",
"sha2": "3deb25e124857cb5e3a42c709020ac5828e7d1df"
}
,{
"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": "3deb25e124857cb5e3a42c709020ac5828e7d1df",
"gitDir": "test/corpus/repos/javascript",
"sha2": "9357444e76622b11a63cd52ed08f8956344b6990"
}
,{
"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": "9357444e76622b11a63cd52ed08f8956344b6990",
"gitDir": "test/corpus/repos/javascript",
"sha2": "b7e192d7e878c96925cc14d96b5b032655559981"
}]