2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-class-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Added the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index e69de29..8f6ae64 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -0,0 +1 @@",
|
|
|
|
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "f6dfeb42af9db740677fd60341ea39da711f7c81..f071d25d12bb0086a285449efbe5cfaeeed8e436"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"insert": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Added the 'Foo' class"
|
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,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Added the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index 8f6ae64..b509437 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1 +1,3 @@",
|
|
|
|
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
|
|
|
|
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "f071d25d12bb0086a285449efbe5cfaeeed8e436..ba736a07888eb4991323c035f2bf78fe1650ea56"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-04 18:08:45 +03:00
|
|
|
"summary": "Replaced the 'foo' identifier with the 'one' identifier in the 'one(a)' method of the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-14 19:18:46 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
2016-10-13 02:44:27 +03:00
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Added the 'two(b)' method in the Foo class"
|
2016-10-13 02:44:27 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-14 19:18:46 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Added the 'three(c)' method in the Foo class"
|
2016-10-14 19:18:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Deleted the 'bar(b)' method in the Foo class"
|
2016-10-14 19:18:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
83
|
|
|
|
]
|
|
|
|
}
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Deleted the 'baz(c)' method in the Foo class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index b509437..c4f5c91 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
|
|
|
|
"+class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "ba736a07888eb4991323c035f2bf78fe1650ea56..c99d7b8dc9cff808ef1e6010caa4573ad1694d9b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"replace": [
|
2016-10-11 18:12:20 +03:00
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
20
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
23
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-11-04 18:08:45 +03:00
|
|
|
"summary": "Replaced the 'one' identifier with the 'foo' identifier in the 'foo(a)' method of the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-14 19:18:46 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
2016-10-13 02:44:27 +03:00
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Added the 'bar(b)' method in the Foo class"
|
2016-10-13 02:44:27 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-14 19:18:46 +03:00
|
|
|
"insert": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
83
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Added the 'baz(c)' method in the Foo class"
|
2016-10-14 19:18:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
42
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
62
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Deleted the 'two(b)' method in the Foo class"
|
2016-10-14 19:18:46 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"delete": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
63
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
2016-10-11 18:12:20 +03:00
|
|
|
},
|
2016-11-04 00:34:26 +03:00
|
|
|
"summary": "Deleted the 'three(c)' method in the Foo class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index c4f5c91..b509437 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1,3 +1,3 @@",
|
|
|
|
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "c99d7b8dc9cff808ef1e6010caa4573ad1694d9b..75a0caa880f62a0706ff723f555a9ec1f0c53c29"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Deleted the 'Foo' class"
|
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,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Deleted the 'Foo' class"
|
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,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Added the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index b509437..b1ef404 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1,3 +1,2 @@",
|
|
|
|
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }",
|
|
|
|
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
"+class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "75a0caa880f62a0706ff723f555a9ec1f0c53c29..4231a3b306d145aa37ceb879ef6f8da6221e54b8"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
87
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Deleted the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index b1ef404..2c17f72 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1,2 +1 @@",
|
|
|
|
"-class Foo { static one(a) { return a; }; two(b) { return b; } three(c) { return c; } }",
|
|
|
|
" class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "4231a3b306d145aa37ceb879ef6f8da6221e54b8..d5627235989da4028cfcb15c4b1ee2bdc544fd31"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-class-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"class.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
2016-10-11 18:54:47 +03:00
|
|
|
"delete": {
|
2016-10-11 18:12:20 +03:00
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
85
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2016-10-11 23:17:34 +03:00
|
|
|
"summary": "Deleted the 'Foo' class"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"class.js"
|
|
|
|
],
|
2016-11-04 01:41:59 +03:00
|
|
|
"patch": [
|
|
|
|
"diff --git a/class.js b/class.js",
|
|
|
|
"index 2c17f72..e69de29 100644",
|
|
|
|
"--- a/class.js",
|
|
|
|
"+++ b/class.js",
|
|
|
|
"@@ -1 +0,0 @@",
|
|
|
|
"-class Foo { static foo(a) { return a; }; bar(b) { return b; } baz(c) { return c; } }"
|
|
|
|
],
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-11-04 01:41:59 +03:00
|
|
|
"shas": "d5627235989da4028cfcb15c4b1ee2bdc544fd31..654a538b26c9b4c8637e6c2e4cd497c93e690310"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|