1
1
mirror of https://github.com/github/semantic.git synced 2024-12-25 07:55:12 +03:00
semantic/test/corpus/diff-summaries/javascript/chained-property-access.json
Rob Rix 483e8a3f00 Regenerate all the things!
JavaScript: method call → function call.

Go: regenerated everything.
2017-01-24 15:09:28 -05:00

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": "c0d1f59dbc88b8a161e9dfa867107276f10b2898..b8c22790764e8661eb7f8d764e9b0af1b93cdd89"
}
,{
"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": "b8c22790764e8661eb7f8d764e9b0af1b93cdd89..63a6ea11f36663237346e70a138fd62524b9aef6"
}
,{
"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(…) function 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(…) function 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": "63a6ea11f36663237346e70a138fd62524b9aef6..1bbcdcf73d6865d9695b99b229ac793f118439a4"
}
,{
"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(…) function 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(…) function 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": "1bbcdcf73d6865d9695b99b229ac793f118439a4..6b89d7a2b0d652938ed2c5f638d5091c6d8555d2"
}
,{
"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": "6b89d7a2b0d652938ed2c5f638d5091c6d8555d2..99c802ed801ddf5a24e177c5a08fc18f2658c6ce"
}
,{
"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": "99c802ed801ddf5a24e177c5a08fc18f2658c6ce..6b0b1796a40ecd246a53b69ffa84e15966547ff9"
}
,{
"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": "6b0b1796a40ecd246a53b69ffa84e15966547ff9..e97f568708cabfc40035c206b04bf5b6abf6e5bd"
}]