mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
402 lines
15 KiB
JSON
402 lines
15 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-chained-property-access-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index e69de29b..5914a55c 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b4a1b602905b005b1bfe48d8f78faebd8c9cf016..e4dd7ea96606956464809e9a3bcfdb81f318c39b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 5914a55c..70959766 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "e4dd7ea96606956464809e9a3bcfdb81f318c39b..6365577e012aa898ba1d2cc77d10eec1fb9a016d"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
41
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…) method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"end": [
|
|
1,
|
|
70
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
58
|
|
],
|
|
"end": [
|
|
1,
|
|
66
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'otherDefer' identifier with the 'newDefer' identifier in the returned.promise().done(…).fail(…) method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 70959766..98df938b 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"+return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6365577e012aa898ba1d2cc77d10eec1fb9a016d..8ab9cd6c506847581b2fc7f04124803cd344b3ff"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
41
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
33
|
|
],
|
|
"end": [
|
|
1,
|
|
43
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…) method call"
|
|
},
|
|
{
|
|
"span": {
|
|
"replace": [
|
|
{
|
|
"start": [
|
|
1,
|
|
58
|
|
],
|
|
"end": [
|
|
1,
|
|
66
|
|
]
|
|
},
|
|
{
|
|
"start": [
|
|
1,
|
|
60
|
|
],
|
|
"end": [
|
|
1,
|
|
70
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"summary": "Replaced the 'newDefer' identifier with the 'otherDefer' identifier in the returned.promise().done(…).fail(…) method call"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 98df938b..70959766 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "8ab9cd6c506847581b2fc7f04124803cd344b3ff..d535074522aa956a8ea7e8d943227d9d78775725"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
3,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 70959766..7b764ca9 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
"+return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d535074522aa956a8ea7e8d943227d9d78775725..b3f90f50ba0ea4d42e78ba37c176a4d69282fcd7"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'returned.promise().done( newDefer.resolve ).fail( newDefer.reject )' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 7b764ca9..5d6d3a02 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-return returned.promise().done( newDefer.resolve ).fail( newDefer.reject )",
|
|
" return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "b3f90f50ba0ea4d42e78ba37c176a4d69282fcd7..6dd90e85a905d3c205cd42bcbedaa3d50110d426"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-chained-property-access-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"chained-property-access.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
1
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"chained-property-access.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/chained-property-access.js b/chained-property-access.js",
|
|
"index 5d6d3a02..e69de29b 100644",
|
|
"--- a/chained-property-access.js",
|
|
"+++ b/chained-property-access.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return returned.promise().done( otherDefer.resolve ).fail( otherDefer.reject )"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "6dd90e85a905d3c205cd42bcbedaa3d50110d426..7b26c97829302e6f2c2fc76d9a1e5dc25caf58d9"
|
|
}]
|