1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 23:11:50 +03:00
semantic/test/corpus/diff-summaries/javascript/subscript-access-variable.json

287 lines
9.1 KiB
JSON
Raw Normal View History

2016-10-11 18:12:20 +03:00
[{
"testCaseDescription": "javascript-subscript-access-variable-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
16
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[someVariable]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "3703258beda4cec843b8f1d61576e214ffd3651b",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "ebb7cf11c3f883bf719a026946a73d5a81d19a6e"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[someOtherVariable]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
16
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[someVariable]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "ebb7cf11c3f883bf719a026946a73d5a81d19a6e",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "3d3432eb1d2d28c69db5dbbead233987b4642adc"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-insert-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'someOtherVariable' identifier with the 'someVariable' identifier in the x[someVariable] subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "3d3432eb1d2d28c69db5dbbead233987b4642adc",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "6f03d88dc0b6f112255e8813d62c09437ffeb24c"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"replace": [
2016-10-11 18:12:20 +03:00
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
2016-10-11 23:17:34 +03:00
"summary": "Replaced the 'someVariable' identifier with the 'someOtherVariable' identifier in the x[someOtherVariable] subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "6f03d88dc0b6f112255e8813d62c09437ffeb24c",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "c8843b7af25558a8470fd3fc8f70df4ec9e4c108"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-replacement-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[someOtherVariable]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
16
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[someVariable]' subscript access"
2016-10-11 18:12:20 +03:00
},
{
"span": {
2016-10-11 18:54:47 +03:00
"insert": {
2016-10-11 18:12:20 +03:00
"start": [
2,
1
],
"end": [
2,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Added the 'x[someOtherVariable]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "c8843b7af25558a8470fd3fc8f70df4ec9e4c108",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "36ef554534ca14a76e650037a2913b49f2b22042"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
16
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[someVariable]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "36ef554534ca14a76e650037a2913b49f2b22042",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "af1714a831574736d7472d7b88e9c7160ffcd12d"
2016-10-11 18:12:20 +03:00
}
,{
"testCaseDescription": "javascript-subscript-access-variable-delete-rest-test",
"expectedResult": {
"changes": {
"subscript-access-variable.js": [
{
"span": {
2016-10-11 18:54:47 +03:00
"delete": {
2016-10-11 18:12:20 +03:00
"start": [
1,
1
],
"end": [
1,
21
]
}
},
2016-10-11 23:17:34 +03:00
"summary": "Deleted the 'x[someOtherVariable]' subscript access"
2016-10-11 18:12:20 +03:00
}
]
},
"errors": {}
},
"filePaths": [
"subscript-access-variable.js"
],
2016-11-01 18:03:25 +03:00
"sha1": "af1714a831574736d7472d7b88e9c7160ffcd12d",
2016-10-11 18:12:20 +03:00
"gitDir": "test/corpus/repos/javascript",
2016-11-01 18:03:25 +03:00
"sha2": "4c278dba39541a15d92a474e30abd18009989d53"
2016-10-11 18:12:20 +03:00
}]