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 11:26:57 -04:00

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": "0c9b3b84cb49951e79891dae24edfddccbf579a1",
"gitDir": "test/corpus/repos/javascript",
"sha2": "f439893abc29fa3d1b29d471dd98f96e90ee2697"
}
,{
"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": "f439893abc29fa3d1b29d471dd98f96e90ee2697",
"gitDir": "test/corpus/repos/javascript",
"sha2": "20336b12a08bcd4c21d5dc3924b33c890e7756f5"
}
,{
"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": "20336b12a08bcd4c21d5dc3924b33c890e7756f5",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4a075f832e204bbf26ded5314cfb891513b549d6"
}
,{
"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": "4a075f832e204bbf26ded5314cfb891513b549d6",
"gitDir": "test/corpus/repos/javascript",
"sha2": "d23a59eb43de72ee6594bb44bc987fc0b650c965"
}
,{
"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": "d23a59eb43de72ee6594bb44bc987fc0b650c965",
"gitDir": "test/corpus/repos/javascript",
"sha2": "255b019fc84f0488a1de3ed0b4f3c3ad28aa365a"
}
,{
"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": "255b019fc84f0488a1de3ed0b4f3c3ad28aa365a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "df97f6eeaaa076e805e66e1bcf98403493d92c2f"
}
,{
"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": "df97f6eeaaa076e805e66e1bcf98403493d92c2f",
"gitDir": "test/corpus/repos/javascript",
"sha2": "7ae7a3452b9ea0561d469df9ecaf32e6eb2d9474"
}]