2016-10-06 18:45:04 +03:00
|
|
|
[{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-insert-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Added the name1, name2, name3, nameN export statement",
|
|
|
|
"Added the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Added the name1, name2, nameN export statement",
|
|
|
|
"Added the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Added the namedFunction export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name1 export statement",
|
|
|
|
"Added the name1 as default export statement",
|
|
|
|
"Added the 'foo' export statement",
|
|
|
|
"Added the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Added the import1 as name1, import2 as name2, nameN from 'bar' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "2f701fa2e362ce2174422861860ed3120b453432",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "de77565b3768b76b3c70b7c448ec3b469ffffb2a"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-replacement-insert-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Added the name4, name5, name6, nameZ export statement",
|
|
|
|
"Added the variable2 as name2, variable3 as name3, nameY export statement",
|
|
|
|
"Added the name3, name4, nameT export statement",
|
|
|
|
"Added the name2 = value2, name3 = value3, name4, nameO export statement",
|
|
|
|
"Added the otherNamedFunction export statement",
|
|
|
|
"Added the newName1 export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name2 as statement export statement",
|
|
|
|
"Added the 'baz' export statement",
|
|
|
|
"Added the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
|
|
|
|
"Added the name1, name2, name3, nameN export statement",
|
|
|
|
"Added the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Added the name1, name2, nameN export statement",
|
|
|
|
"Added the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Added the namedFunction export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name1 export statement",
|
|
|
|
"Added the name1 as default export statement",
|
|
|
|
"Added the 'foo' export statement",
|
|
|
|
"Added the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Added the import1 as name1, import2 as name2, nameN from 'bar' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "de77565b3768b76b3c70b7c448ec3b469ffffb2a",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "b6b2efef3daf301aefeb78c6566e2484b055fc50"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-delete-insert-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Replaced the 'name4' identifier with the 'name1' identifier in the name1, name2, name3, nameN export statement",
|
|
|
|
"Replaced the 'name5' identifier with the 'name2' identifier in the name1, name2, name3, nameN export statement",
|
|
|
|
"Replaced the 'name6' identifier with the 'name3' identifier in the name1, name2, name3, nameN export statement",
|
|
|
|
"Replaced the 'nameZ' identifier with the 'nameN' identifier in the name1, name2, name3, nameN export statement",
|
|
|
|
"Replaced the 'variable2' identifier with the 'variable1' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Replaced the 'name2' identifier with the 'name1' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Replaced the 'variable3' identifier with the 'variable2' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Replaced the 'name3' identifier with the 'name2' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Replaced the 'nameY' identifier with the 'nameN' identifier in the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Replaced the 'name3' identifier with the 'name1' identifier in the name1, name2, nameN export statement",
|
|
|
|
"Replaced the 'name4' identifier with the 'name2' identifier in the name1, name2, nameN export statement",
|
|
|
|
"Replaced the 'nameT' identifier with the 'nameN' identifier in the name1, name2, nameN export statement",
|
|
|
|
"Replaced the 'name2' identifier with the 'name1' identifier in the name1 var assignment",
|
|
|
|
"Replaced the 'value2' identifier with the 'value1' identifier in the name1 var assignment",
|
|
|
|
"Replaced the 'name3' identifier with the 'name2' identifier in the name2 var assignment",
|
|
|
|
"Replaced the 'value3' identifier with the 'value2' identifier in the name2 var assignment",
|
|
|
|
"Replaced the 'name4' identifier with the 'name3' identifier in the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Replaced the 'nameO' identifier with the 'nameN' identifier in the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Replaced the 'otherNamedFunction' identifier with the 'namedFunction' identifier in the namedFunction export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name1 export statement",
|
|
|
|
"Added the name1 as default export statement",
|
|
|
|
"Added the 'foo' export statement",
|
|
|
|
"Added the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Added the import1 as name1, import2 as name2, nameN from 'bar' export statement",
|
|
|
|
"Deleted the newName1 export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name2 as statement export statement",
|
|
|
|
"Deleted the 'baz' export statement",
|
|
|
|
"Deleted the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "b6b2efef3daf301aefeb78c6566e2484b055fc50",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "5e71f3a6552236d69392d252ae835d6ebd07a20f"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-replacement-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Replaced the 'name1' identifier with the 'name4' identifier in the name4, name5, name6, nameZ export statement",
|
|
|
|
"Replaced the 'name2' identifier with the 'name5' identifier in the name4, name5, name6, nameZ export statement",
|
|
|
|
"Replaced the 'name3' identifier with the 'name6' identifier in the name4, name5, name6, nameZ export statement",
|
|
|
|
"Replaced the 'nameN' identifier with the 'nameZ' identifier in the name4, name5, name6, nameZ export statement",
|
|
|
|
"Added the variable2 as name2, variable3 as name3, nameY export statement",
|
|
|
|
"Added the name3, name4, nameT export statement",
|
|
|
|
"Added the name2 = value2, name3 = value3, name4, nameO export statement",
|
|
|
|
"Added the otherNamedFunction export statement",
|
|
|
|
"Added the newName1 export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name2 as statement export statement",
|
|
|
|
"Added the 'baz' export statement",
|
|
|
|
"Added the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
|
|
|
|
"Deleted the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Deleted the name1, name2, nameN export statement",
|
|
|
|
"Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Deleted the namedFunction export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name1 export statement",
|
|
|
|
"Deleted the name1 as default export statement",
|
|
|
|
"Deleted the 'foo' export statement",
|
|
|
|
"Deleted the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "5e71f3a6552236d69392d252ae835d6ebd07a20f",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "9c1464f03e875ca45d426a6b9c41664a540daafc"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-delete-replacement-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Deleted the name4, name5, name6, nameZ export statement",
|
|
|
|
"Deleted the variable2 as name2, variable3 as name3, nameY export statement",
|
|
|
|
"Deleted the name3, name4, nameT export statement",
|
|
|
|
"Deleted the name2 = value2, name3 = value3, name4, nameO export statement",
|
|
|
|
"Deleted the otherNamedFunction export statement",
|
|
|
|
"Deleted the newName1 export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name2 as statement export statement",
|
|
|
|
"Deleted the 'baz' export statement",
|
|
|
|
"Deleted the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement",
|
|
|
|
"Deleted the name1, name2, name3, nameN export statement",
|
|
|
|
"Deleted the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Deleted the name1, name2, nameN export statement",
|
|
|
|
"Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Deleted the namedFunction export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name1 export statement",
|
|
|
|
"Deleted the name1 as default export statement",
|
|
|
|
"Deleted the 'foo' export statement",
|
|
|
|
"Deleted the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement",
|
|
|
|
"Added the name4, name5, name6, nameZ export statement",
|
|
|
|
"Added the variable2 as name2, variable3 as name3, nameY export statement",
|
|
|
|
"Added the name3, name4, nameT export statement",
|
|
|
|
"Added the name2 = value2, name3 = value3, name4, nameO export statement",
|
|
|
|
"Added the otherNamedFunction export statement",
|
|
|
|
"Added the newName1 export statement",
|
|
|
|
"Added the anonymous() function export statement",
|
|
|
|
"Added the name2 as statement export statement",
|
|
|
|
"Added the 'baz' export statement",
|
|
|
|
"Added the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Added the import6 as name6, import7 as name7, nameB from 'fizz' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "9c1464f03e875ca45d426a6b9c41664a540daafc",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "b3875a07511d1c5bb45fa4dee0b87ea36c98d40c"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-delete-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Deleted the name1, name2, name3, nameN export statement",
|
|
|
|
"Deleted the variable1 as name1, variable2 as name2, nameN export statement",
|
|
|
|
"Deleted the name1, name2, nameN export statement",
|
|
|
|
"Deleted the name1 = value1, name2 = value2, name3, nameN export statement",
|
|
|
|
"Deleted the namedFunction export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name1 export statement",
|
|
|
|
"Deleted the name1 as default export statement",
|
|
|
|
"Deleted the 'foo' export statement",
|
|
|
|
"Deleted the name1, name2, nameN from 'foo' export statement",
|
|
|
|
"Deleted the import1 as name1, import2 as name2, nameN from 'bar' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "b3875a07511d1c5bb45fa4dee0b87ea36c98d40c",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "6de4ad8ea759bb6494bdcb8e116e05b0c379b019"
|
2016-10-06 18:45:04 +03:00
|
|
|
}
|
|
|
|
,{
|
2016-10-10 20:39:22 +03:00
|
|
|
"testCaseDescription": "javascript-export-delete-rest-test",
|
2016-10-06 18:45:04 +03:00
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js": [
|
|
|
|
"Deleted the name4, name5, name6, nameZ export statement",
|
|
|
|
"Deleted the variable2 as name2, variable3 as name3, nameY export statement",
|
|
|
|
"Deleted the name3, name4, nameT export statement",
|
|
|
|
"Deleted the name2 = value2, name3 = value3, name4, nameO export statement",
|
|
|
|
"Deleted the otherNamedFunction export statement",
|
|
|
|
"Deleted the newName1 export statement",
|
|
|
|
"Deleted the anonymous() function export statement",
|
|
|
|
"Deleted the name2 as statement export statement",
|
|
|
|
"Deleted the 'baz' export statement",
|
|
|
|
"Deleted the name7, name8, nameP from 'buzz' export statement",
|
|
|
|
"Deleted the import6 as name6, import7 as name7, nameB from 'fizz' export statement"
|
2016-10-06 18:45:04 +03:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
2016-10-10 20:39:22 +03:00
|
|
|
"export.js"
|
2016-10-06 18:45:04 +03:00
|
|
|
],
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha1": "6de4ad8ea759bb6494bdcb8e116e05b0c379b019",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 19:07:57 +03:00
|
|
|
"sha2": "efb2f2dc42a2a302ada7daa10bc3970b105b7916"
|
2016-10-06 18:45:04 +03:00
|
|
|
}]
|