2016-10-11 18:12:20 +03:00
|
|
|
[{
|
|
|
|
"testCaseDescription": "javascript-while-statement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "7f97f2e3a13baab2548b10a72e291b71ca0b9fa4",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "9704581566ea216ec6f378e5f76e8943a79865f5"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-replacement-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'a' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "9704581566ea216ec6f378e5f76e8943a79865f5",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "fd7989e23defab92f730cb28cfdd04b4c9e2d31b"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-delete-insert-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier in the b() function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "fd7989e23defab92f730cb28cfdd04b4c9e2d31b",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "9200999bd304f0dd206ad4fa0f6b52807b27b2b4"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
8
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
9
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'a' identifier with the 'b' identifier",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"these": [
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
13
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
14
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"summary": "Replaced the 'b' identifier with the 'a' identifier in the a() function call",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "9200999bd304f0dd206ad4fa0f6b52807b27b2b4",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "2f2ca40848a11ece5334c303c012b3e46020fb7a"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-delete-replacement-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"that": {
|
|
|
|
"start": [
|
|
|
|
2,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
2,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Added the 'b' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "2f2ca40848a11ece5334c303c012b3e46020fb7a",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "e048bb9d6a69bfd30b01c3ee83d5d28803dcfb57"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-delete-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'a' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "e048bb9d6a69bfd30b01c3ee83d5d28803dcfb57",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "1628b7a59734cf69c9965cadbe93776d2923085a"
|
2016-10-11 18:12:20 +03:00
|
|
|
}
|
|
|
|
,{
|
|
|
|
"testCaseDescription": "javascript-while-statement-delete-rest-test",
|
|
|
|
"expectedResult": {
|
|
|
|
"changes": {
|
|
|
|
"while-statement.js": [
|
|
|
|
{
|
|
|
|
"span": {
|
|
|
|
"this": {
|
|
|
|
"start": [
|
|
|
|
1,
|
|
|
|
1
|
|
|
|
],
|
|
|
|
"name": "while-statement.js",
|
|
|
|
"end": [
|
|
|
|
1,
|
|
|
|
19
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"summary": "Deleted the 'b' while statement",
|
|
|
|
"tag": "JSONSummary"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"errors": {}
|
|
|
|
},
|
|
|
|
"filePaths": [
|
|
|
|
"while-statement.js"
|
|
|
|
],
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha1": "1628b7a59734cf69c9965cadbe93776d2923085a",
|
2016-10-11 18:12:20 +03:00
|
|
|
"gitDir": "test/corpus/repos/javascript",
|
2016-10-11 18:26:57 +03:00
|
|
|
"sha2": "b9bce32850180705594c7350911bd0714243f188"
|
2016-10-11 18:12:20 +03:00
|
|
|
}]
|