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-10 20:39:22 +03:00
|
|
|
"sha1": "75554d78a4ca38bc77dea6b9025889e3ec09d63e",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "020f9d147c4e58b9507d9301273986fa1527c418"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "020f9d147c4e58b9507d9301273986fa1527c418",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "2abbf0226bd9e52968216e69ce45522b0ff8e2fd"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "2abbf0226bd9e52968216e69ce45522b0ff8e2fd",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "80dfd6d1c3599ec2ae9e82c142e7380e6403238b"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "80dfd6d1c3599ec2ae9e82c142e7380e6403238b",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "066a37d5622d80792c60b592cf6530f72adb6576"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "066a37d5622d80792c60b592cf6530f72adb6576",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "cced14a9496534fdb09ffee101222a3582cd384c"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "cced14a9496534fdb09ffee101222a3582cd384c",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "71159ed2d5cd3175d315068c82b3b00b0dec29a8"
|
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-10 20:39:22 +03:00
|
|
|
"sha1": "71159ed2d5cd3175d315068c82b3b00b0dec29a8",
|
2016-10-06 18:45:04 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-10 20:39:22 +03:00
|
|
|
"sha2": "bebc5ef161b7028c9afbb237c51ce9f0c54c829f"
|
2016-10-06 18:45:04 +03:00
|
|
|
}]
|