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

309 lines
10 KiB
JSON

[{
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"insert": {
"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": "34a84c5fb21b25b173aca33ee72df362b955f3ee",
"gitDir": "test/corpus/repos/javascript",
"sha2": "ccca96ceb275d35019acee7af10cec4dcb9c140e"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"name": "subscript-access-variable.js",
"end": [
1,
21
]
}
},
"summary": "Added the 'x[someOtherVariable]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "ccca96ceb275d35019acee7af10cec4dcb9c140e",
"gitDir": "test/corpus/repos/javascript",
"sha2": "14446e4157483ffafdd7e5ed66d7093ab0a6076b"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"replace": [
{
"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": "14446e4157483ffafdd7e5ed66d7093ab0a6076b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "1d98a4fb0a9300fc55f4533eb6f30e75e4a3be3b"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"replace": [
{
"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": "1d98a4fb0a9300fc55f4533eb6f30e75e4a3be3b",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4a34ec4c1e6412c882409c83c46b8d2612543cbd"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"name": "subscript-access-variable.js",
"end": [
1,
21
]
}
},
"summary": "Deleted the 'x[someOtherVariable]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"name": "subscript-access-variable.js",
"end": [
2,
16
]
}
},
"summary": "Deleted the 'x[someVariable]' subscript access",
"tag": "JSONSummary"
},
{
"span": {
"insert": {
"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": "4a34ec4c1e6412c882409c83c46b8d2612543cbd",
"gitDir": "test/corpus/repos/javascript",
"sha2": "cc7e39b323d13e1f410286e56d0fb0128950d715"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"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": "cc7e39b323d13e1f410286e56d0fb0128950d715",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f21d7b5aa1767f892bf1d76df7ade14f62d7e749"
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
"delete": {
"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": "f21d7b5aa1767f892bf1d76df7ade14f62d7e749",
"gitDir": "test/corpus/repos/javascript",
"sha2": "6157ae1cfd3503d356c628a06d397a81757e54f4"
}]