2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "87ee63679cf89692a390eb921ae462b11b4a06e0",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "f14dd81890ac415d276801c1571ae13d4ddc96af"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
|
|
|
|
"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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'new Error(\"uh oh\")' throw statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "f14dd81890ac415d276801c1571ae13d4ddc96af",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "f40e06699f4c62cbe28402a49217a50745d4951a"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
17
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
17
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the \"oooooops\" string with the \"uh oh\" string in the Error(\"uh oh\") function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "f40e06699f4c62cbe28402a49217a50745d4951a",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "e419aef46115c692e1dce0182e889d147bab900b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
17
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
24
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
17
|
|
|
|
],
|
2016-10-11 19:52:26 +03:00
|
|
|
"filepath": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
27
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the \"uh oh\" string with the \"oooooops\" string in the Error(\"oooooops\") function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "e419aef46115c692e1dce0182e889d147bab900b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "456b9d703a0897c3ae7ffcccb88b633d24d6e772"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
|
|
|
|
"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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
|
|
|
|
"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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'new Error(\"oooooops\")' throw statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "456b9d703a0897c3ae7ffcccb88b633d24d6e772",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "a0241ec11741dd48f4789522c53554a6c0e51ec5"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
26
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'new Error(\"uh oh\")' throw statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "a0241ec11741dd48f4789522c53554a6c0e51ec5",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "9f6bb83269360c82b0a7d8f0876db24bec390b09"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-throw-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"throw-statement.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": "throw-statement.js",
|
2016-10-11 18:12:20 +03:00
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
29
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'new Error(\"oooooops\")' throw statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"throw-statement.js"
|
|
|
|
],
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha1": "9f6bb83269360c82b0a7d8f0876db24bec390b09",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 20:03:43 +03:00
|
|
|
"sha2": "5886a80268586c2725f1f8be03d2dea099ba0bd2"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|