2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-object-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '{ \"key1\": \"value1\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index e69de29..fe17bb2 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+{ \"key1\": \"value1\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "5dede241573c8e353a4d8c662194e8e3b750e01a..45f29912e03b7de277df4c10ad238121235b6ed7"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
54
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '{ \"key1\": \"value1\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index fe17bb2..741c3dc 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1 +1,3 @@",
|
|
|
|
"+{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };",
|
|
|
|
"+{ \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "45f29912e03b7de277df4c10ad238121235b6ed7..4e17781769a2098bcce839e1282b1fa0d1df7821"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '\"key2\": \"value2\"' pair"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
52
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '\"key3\": \"3.0\"' pair"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index 741c3dc..701239d 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };",
|
|
|
|
"+{ \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "4e17781769a2098bcce839e1282b1fa0d1df7821..d035734af1172dab5eb30ad01fe898f5d850606c"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
37
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '\"key2\": \"value2\"' pair"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
39
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
52
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '\"key3\": \"3.0\"' pair"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index 701239d..741c3dc 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-{ \"key1\": \"value1\" };",
|
|
|
|
"+{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };",
|
|
|
|
" { \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "d035734af1172dab5eb30ad01fe898f5d850606c..d172e093c2f663040bb8d2c429564a4d273753d3"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
54
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '{ \"key1\": \"value1\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
54
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Added the '{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index 741c3dc..9e48273 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1,3 +1,2 @@",
|
|
|
|
"-{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };",
|
|
|
|
"-{ \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\" };",
|
|
|
|
"+{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "d172e093c2f663040bb8d2c429564a4d273753d3..337ff59260d3eed7762de977645c68224ea4d46c"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
21
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '{ \"key1\": \"value1\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index 9e48273..12d063a 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1,2 +1 @@",
|
|
|
|
"-{ \"key1\": \"value1\" };",
|
|
|
|
" { \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "337ff59260d3eed7762de977645c68224ea4d46c..9d30494c528991b340e861222f5a6276e874a964"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-object-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"object.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
54
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-09 21:48:50 +03:00
|
|
|
"summary": "Deleted the '{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" }' object"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"object.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/object.js b/object.js",
|
|
|
|
"index 12d063a..e69de29 100644",
|
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-{ \"key1\": \"value1\", \"key2\": \"value2\", \"key3\": \"3.0\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-09 21:48:50 +03:00
|
|
|
"shas": "9d30494c528991b340e861222f5a6276e874a964..ba01e3794a8efa31353fd2d5726c70bb2ad8c6a8"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|