2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "24df96dbbf63c7c9940c4c18cd4286ca25dae952",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "2e84457d7745d18b03e53ef5509b0ad54ba17cdb"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "2e84457d7745d18b03e53ef5509b0ad54ba17cdb",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "c10878f68d963f8590a20a96decc7c9d46677ea4"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '1' with '0' in an assignment to y[\"x\"]",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "c10878f68d963f8590a20a96decc7c9d46677ea4",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "b6c7d9e8ace1d878d63fb7d0fdea67b9d54dede8"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '0' with '1' in an assignment to y[\"x\"]",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "b6c7d9e8ace1d878d63fb7d0fdea67b9d54dede8",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "692c5d641d8f57e45695b61eff927a180479f8be"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "692c5d641d8f57e45695b61eff927a180479f8be",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "12d619232d825562cfd89152d86da01280a8eed7"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "12d619232d825562cfd89152d86da01280a8eed7",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "0aa3cdadfd12b36dbf42aaef9f2b42edacb16947"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-subscript-access-assignment-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"subscript-access-assignment.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "subscript-access-assignment.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
11
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'y[\"x\"]' assignment",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"subscript-access-assignment.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "0aa3cdadfd12b36dbf42aaef9f2b42edacb16947",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "70e4311d385e03edb55b7d538def13b2388666a4"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|