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/member-access.json
Rick Winfrey dfc11385d8 ++tests
2016-10-14 13:40:07 -05:00

287 lines
8.8 KiB
JSON

[{
"testCaseDescription": "javascript-member-access-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "f3f37e99308905c9b051e7f10cebaa4d1ec6c444",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0200a98cef97fc3df019a352f2f5d176898ad468"
}
,{
"testCaseDescription": "javascript-member-access-replacement-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"insert": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Added the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "0200a98cef97fc3df019a352f2f5d176898ad468",
"gitDir": "test/corpus/repos/javascript",
"sha2": "51f409e7f29a168b41bfb2d7b8064e2e9fe0a4f2"
}
,{
"testCaseDescription": "javascript-member-access-delete-insert-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
20
]
},
{
"start": [
1,
3
],
"end": [
1,
15
]
}
]
},
"summary": "Replaced the 'someOtherProperty' identifier with the 'someProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "51f409e7f29a168b41bfb2d7b8064e2e9fe0a4f2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "8227cb4479a439074210a62c580d4b038dede7a2"
}
,{
"testCaseDescription": "javascript-member-access-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"replace": [
{
"start": [
1,
3
],
"end": [
1,
15
]
},
{
"start": [
1,
3
],
"end": [
1,
20
]
}
]
},
"summary": "Replaced the 'someProperty' identifier with the 'someOtherProperty' identifier"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "8227cb4479a439074210a62c580d4b038dede7a2",
"gitDir": "test/corpus/repos/javascript",
"sha2": "bf5cb9854778f98c5fc34d68969dd0f767a5929a"
}
,{
"testCaseDescription": "javascript-member-access-delete-replacement-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
},
{
"span": {
"delete": {
"start": [
2,
1
],
"end": [
2,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
},
{
"span": {
"insert": {
"start": [
2,
1
],
"end": [
2,
20
]
}
},
"summary": "Added the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "bf5cb9854778f98c5fc34d68969dd0f767a5929a",
"gitDir": "test/corpus/repos/javascript",
"sha2": "55827a99bd3d4084ca0788ad21b5546a7a25e80d"
}
,{
"testCaseDescription": "javascript-member-access-delete-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
15
]
}
},
"summary": "Deleted the 'x.someProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "55827a99bd3d4084ca0788ad21b5546a7a25e80d",
"gitDir": "test/corpus/repos/javascript",
"sha2": "4cf6f1f156839cb229a41a264511f1b51cc30e38"
}
,{
"testCaseDescription": "javascript-member-access-delete-rest-test",
"expectedResult": {
"changes": {
"member-access.js": [
{
"span": {
"delete": {
"start": [
1,
1
],
"end": [
1,
20
]
}
},
"summary": "Deleted the 'x.someOtherProperty' member access"
}
]
},
"errors": {}
},
"filePaths": [
"member-access.js"
],
"sha1": "4cf6f1f156839cb229a41a264511f1b51cc30e38",
"gitDir": "test/corpus/repos/javascript",
"sha2": "0d42e808e4dd17f60f2029cc59e0f7c86c8ce169"
}]