mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
309 lines
10 KiB
JSON
309 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"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"
|
|
],
|
|
"sha1": "c77d21ce31ff19818614b186e90aa577cc20ce9d",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4d5dda84d5715cb19e8562fa86ec775ad7bc3b52"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "subscript-access-variable.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'x[someOtherVariable]' subscript access",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"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"
|
|
],
|
|
"sha1": "4d5dda84d5715cb19e8562fa86ec775ad7bc3b52",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "a73be8ec6fa12c27b78977f88cde47c3131f85a0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"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"
|
|
],
|
|
"sha1": "a73be8ec6fa12c27b78977f88cde47c3131f85a0",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b1f52c7fa0096992d231a1a96f2d3c6bd350a948"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"these": [
|
|
{
|
|
"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"
|
|
],
|
|
"sha1": "b1f52c7fa0096992d231a1a96f2d3c6bd350a948",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "d7d36537db64ed980915c9fd7438eb28aca9121a"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"name": "subscript-access-variable.js",
|
|
"end": [
|
|
1,
|
|
21
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x[someOtherVariable]' subscript access",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"name": "subscript-access-variable.js",
|
|
"end": [
|
|
2,
|
|
16
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'x[someVariable]' subscript access",
|
|
"tag": "JSONSummary"
|
|
},
|
|
{
|
|
"span": {
|
|
"that": {
|
|
"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"
|
|
],
|
|
"sha1": "d7d36537db64ed980915c9fd7438eb28aca9121a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "39e4553a4dc76006a19f6907144fe12affe9b3bf"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"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"
|
|
],
|
|
"sha1": "39e4553a4dc76006a19f6907144fe12affe9b3bf",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "579578d94e6d3639fef8ef66a5c71d990e4f7a95"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"subscript-access-variable.js": [
|
|
{
|
|
"span": {
|
|
"this": {
|
|
"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"
|
|
],
|
|
"sha1": "579578d94e6d3639fef8ef66a5c71d990e4f7a95",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b5a7a5a17e38194441efeaf2ddc572cf612a050c"
|
|
}]
|