1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 14:54:16 +03:00
semantic/test/corpus/diff-summaries/javascript/chained-property-access.json
2017-02-06 10:44:04 -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": "2ceb4d28a0554634451ed82eacdbb44d64ce6d54..04d4c1c2fc7bdc609a5e62f5392deeb2b8c9ab9a"
}
,{
"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": "04d4c1c2fc7bdc609a5e62f5392deeb2b8c9ab9a..6a9f25a73a687fa568e6d8c0729891567ce577d9"
}
,{
"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": "6a9f25a73a687fa568e6d8c0729891567ce577d9..f28a31996062be9efdb0201fdb9c31713fb1863c"
}
,{
"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": "f28a31996062be9efdb0201fdb9c31713fb1863c..46c033b24c360e511ef758b6b789094a7fdf0a71"
}
,{
"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": "46c033b24c360e511ef758b6b789094a7fdf0a71..68a9119e612fa94131420134a900676aa832b51c"
}
,{
"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": "68a9119e612fa94131420134a900676aa832b51c..4df47be97cc54a916abb21134f5d8b761e34752a"
}
,{
"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": "4df47be97cc54a916abb21134f5d8b761e34752a..9d8e6a9365dd210f6592bfbb25de8eb159ea7499"
}]