2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-comment-insert-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index e69de29..a5821d2 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+// This is a property"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "81bc4513ad3979452e9e95586a5fbc9ca66eeadc..522a93132b55605393a0f7a5421f3d1f7b0d4a8c"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index a5821d2..761aa7a 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1 +1,5 @@",
|
|
|
|
"+/*",
|
|
|
|
"+ * This is a method",
|
|
|
|
"+*/",
|
|
|
|
"+// This is a property",
|
|
|
|
" // This is a property"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "522a93132b55605393a0f7a5421f3d1f7b0d4a8c..f0aa09e8712b14d61160b16073cac5fbd0276038"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-delete-insert-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index 761aa7a..3b33406 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1,5 +1,3 @@",
|
|
|
|
"-/*",
|
|
|
|
"- * This is a method",
|
|
|
|
"-*/",
|
|
|
|
"+// This is a property",
|
|
|
|
" // This is a property",
|
|
|
|
" // This is a property"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "f0aa09e8712b14d61160b16073cac5fbd0276038..9402b254de81dabcddcbd6d7308911822b6f0f59"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index 3b33406..761aa7a 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1,3 +1,5 @@",
|
|
|
|
"-// This is a property",
|
|
|
|
"+/*",
|
|
|
|
"+ * This is a method",
|
|
|
|
"+*/",
|
|
|
|
" // This is a property",
|
|
|
|
" // This is a property"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "9402b254de81dabcddcbd6d7308911822b6f0f59..ba788116c40403584cd03df9976350810a9b1162"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index 761aa7a..c2a8148 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1,5 +1,4 @@",
|
|
|
|
"+// This is a property",
|
|
|
|
" /*",
|
|
|
|
" * This is a method",
|
|
|
|
" */",
|
|
|
|
"-// This is a property",
|
|
|
|
"-// This is a property"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "ba788116c40403584cd03df9976350810a9b1162..05a2041be1630b8a7309163d4b863cd8966adbe0"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-delete-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index c2a8148..7c74dcd 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1,4 +1,3 @@",
|
|
|
|
"-// This is a property",
|
|
|
|
" /*",
|
|
|
|
" * This is a method",
|
|
|
|
" */"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "05a2041be1630b8a7309163d4b863cd8966adbe0..28ae9fb48ab99b60a709d3168a82f53017fa27a0"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-comment-delete-rest-test",
|
|
|
|
"expectedResult": {
|
2016-10-13 00:21:40 +03:00
|
|
|
"changes": {},
|
2016-10-11 18:12:20 +03:00
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"comment.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/comment.js b/comment.js",
|
|
|
|
"index 7c74dcd..e69de29 100644",
|
|
|
|
"--- a/comment.js",
|
|
|
|
"+++ b/comment.js",
|
|
|
|
"@@ -1,3 +0,0 @@",
|
|
|
|
"-/*",
|
|
|
|
"- * This is a method",
|
|
|
|
"-*/"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "28ae9fb48ab99b60a709d3168a82f53017fa27a0..8f7edd21ecef61769b82fb5a60a881f31ce30a01"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|