mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
287 lines
8.7 KiB
JSON
287 lines
8.7 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-for-statement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "3796a991b2357c81a53bba876bd3301454149a67",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "b96e317e7462b16604a14c3abfd3aa092eda22f9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 10; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "b96e317e7462b16604a14c3abfd3aa092eda22f9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "0ddad4bbd14536e0b3793d167f43d40ef1242bfa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '100' with '10'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "0ddad4bbd14536e0b3793d167f43d40ef1242bfa",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "021c4135ec99beb219b8a36571c7e43148eb1ad9"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
27
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
25
|
|
],
|
|
"end": [
|
|
1,
|
|
28
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced '10' with '100'"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "021c4135ec99beb219b8a36571c7e43148eb1ad9",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "e67efbe9d926f8bf7a9d123a86399cc7259ae516"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'i = 0, init(); i < 100; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "e67efbe9d926f8bf7a9d123a86399cc7259ae516",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "eb778d7a56f5b5e6420565c7fe3f7b9729a7b92f"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
45
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 10; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "eb778d7a56f5b5e6420565c7fe3f7b9729a7b92f",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "8febc6a8354ef03b60f5d79eb250b55d81b335ca"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-for-statement-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"for-statement.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
46
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'i = 0, init(); i < 100; i++' for statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"for-statement.js"
|
|
],
|
|
"sha1": "8febc6a8354ef03b60f5d79eb250b55d81b335ca",
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"sha2": "9b4b62c9c1e7a10e77767f7e7fb43c58f9cf01ed"
|
|
}]
|