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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index e69de29b..fe17bb20 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- a/object.js",
|
|
|
|
"+++ b/object.js",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+{ \"key1\": \"value1\" };"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "abce7caf7e67e197076f10ee997f4a8e08480f93..c701fcab47a5cfe81c6c44a415e62429d18668ec"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index fe17bb20..741c3dc1 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "c701fcab47a5cfe81c6c44a415e62429d18668ec..c2fc8a1697fb233aacff9572aa9e3cf0ad8bf9df"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index 741c3dc1..701239d4 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "c2fc8a1697fb233aacff9572aa9e3cf0ad8bf9df..ad2eb5f77d0a45ac8677301606605b3e888da0c9"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index 701239d4..741c3dc1 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "ad2eb5f77d0a45ac8677301606605b3e888da0c9..143cab3431df1bf47a955baa7bf491ad034f698b"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index 741c3dc1..9e482739 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "143cab3431df1bf47a955baa7bf491ad034f698b..a32d14229ed7d51190835ad936015498e5bcd9b4"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index 9e482739..12d063ad 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "a32d14229ed7d51190835ad936015498e5bcd9b4..918bb4a152604b1dbd7b91ec5c16c82cce2f1377"
|
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",
|
2017-01-24 23:09:28 +03:00
|
|
|
"index 12d063ad..e69de29b 100644",
|
2016-11-04 01:41:59 +03:00
|
|
|
"--- 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",
|
2017-02-06 18:44:04 +03:00
|
|
|
"shas": "918bb4a152604b1dbd7b91ec5c16c82cce2f1377..784daea9abe5781b5fb045bca826f00e058b0b62"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|