mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
287 lines
9.1 KiB
JSON
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": "0d42e808e4dd17f60f2029cc59e0f7c86c8ce169",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "91475db9064f53b6f37e05e13c1376fdb71f5b4a"
|
|
}
|
|
,{
|
|
"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": "91475db9064f53b6f37e05e13c1376fdb71f5b4a",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e6200a0d53990a65d3d831bd28fc71e42e29cdf3"
|
|
}
|
|
,{
|
|
"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": "e6200a0d53990a65d3d831bd28fc71e42e29cdf3",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4dd9c638f4dfe822e759e723c55acdb890d70cc7"
|
|
}
|
|
,{
|
|
"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": "4dd9c638f4dfe822e759e723c55acdb890d70cc7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "7ea82939db78b95666325839770e3401bfdd35fd"
|
|
}
|
|
,{
|
|
"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": "7ea82939db78b95666325839770e3401bfdd35fd",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "4d793827d9e2ad8a54ed3f0703d849f0f40f0d49"
|
|
}
|
|
,{
|
|
"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": "4d793827d9e2ad8a54ed3f0703d849f0f40f0d49",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "eac68c8756fbd3b0ef7f5ce4cda27fcf1878e5b7"
|
|
}
|
|
,{
|
|
"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": "eac68c8756fbd3b0ef7f5ce4cda27fcf1878e5b7",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "bfd5b98057c8ea4f46c590f2aea1ccf1fff4532f"
|
|
}]
|