2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '1' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "ebc2ca02f6b0c4744e33e2d191158cc7f2b19a60",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "cbc2b0ea47a2cd6fb09368f3c72e101f946c4b26"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '2' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '1' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "cbc2b0ea47a2cd6fb09368f3c72e101f946c4b26",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "e61491adc3ae0a36743a2fb5a3be26e57637593b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '2' with '1'",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '2' with '1'",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "e61491adc3ae0a36743a2fb5a3be26e57637593b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "c62f3ccb77ecb50b8f61d3d058f05a27d4187227"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
10
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '1' with '2'",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
33
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
34
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced '1' with '2'",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "c62f3ccb77ecb50b8f61d3d058f05a27d4187227",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "08f399fd747b15cef9703dc4f05efd330258e832"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '2' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '1' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the '2' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "08f399fd747b15cef9703dc4f05efd330258e832",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "100b2392d9286d71b1c1910ddacd28ca2a96284b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '1' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "100b2392d9286d71b1c1910ddacd28ca2a96284b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "f033612791a0f3ff8aa0d4313044903cd7eb8b9a"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-switch-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"switch-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "switch-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
48
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the '2' switch statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"switch-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "f033612791a0f3ff8aa0d4313044903cd7eb8b9a",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "70fe15f33094a3e5dc81081f9bd30e2baa0ff885"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|