mirror of
https://github.com/github/semantic.git
synced 2024-12-23 14:54:16 +03:00
354 lines
10 KiB
JSON
354 lines
10 KiB
JSON
[{
|
|
"testCaseDescription": "javascript-this-expression-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index e69de29..b251f26 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -0,0 +1 @@",
|
|
"+this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "5180fa74c7ae39b3c2cb94b9b5498307af385e5c..98e4bf8c567fd1203aa3d1c3b9e9dc58d5733e11"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-replacement-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index b251f26..5804743 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1 +1,3 @@",
|
|
"+return this;",
|
|
"+this;",
|
|
" this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "98e4bf8c567fd1203aa3d1c3b9e9dc58d5733e11..9dd112b28d5a97a59a847018e58f3926ccf46e56"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-insert-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index 5804743..3c82a23 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-return this;",
|
|
"+this;",
|
|
" this;",
|
|
" this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "9dd112b28d5a97a59a847018e58f3926ccf46e56..d1b36cdc475a6f7ea16558b4269f3e3c18758dfa"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index 3c82a23..5804743 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1,3 +1,3 @@",
|
|
"-this;",
|
|
"+return this;",
|
|
" this;",
|
|
" this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "d1b36cdc475a6f7ea16558b4269f3e3c18758dfa..efc36cfae7c31ef3d4f2052a0c79fe592ab2aa58"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-replacement-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement"
|
|
},
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier"
|
|
},
|
|
{
|
|
"span": {
|
|
"insert": {
|
|
"start": [
|
|
2,
|
|
1
|
|
],
|
|
"end": [
|
|
2,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Added the 'this' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index 5804743..81aca89 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1,3 +1,2 @@",
|
|
"-return this;",
|
|
"-this;",
|
|
" this;",
|
|
"+return this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "efc36cfae7c31ef3d4f2052a0c79fe592ab2aa58..531a5b86388175804b734a10ace1c7645169154b"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
5
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' identifier"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index 81aca89..45c3231 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1,2 +1 @@",
|
|
"-this;",
|
|
" return this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "531a5b86388175804b734a10ace1c7645169154b..dfa50df5733740923a1d747f988102b19e9ce7e0"
|
|
}
|
|
,{
|
|
"testCaseDescription": "javascript-this-expression-delete-rest-test",
|
|
"expectedResult": {
|
|
"changes": {
|
|
"this-expression.js": [
|
|
{
|
|
"span": {
|
|
"delete": {
|
|
"start": [
|
|
1,
|
|
1
|
|
],
|
|
"end": [
|
|
1,
|
|
13
|
|
]
|
|
}
|
|
},
|
|
"summary": "Deleted the 'this' return statement"
|
|
}
|
|
]
|
|
},
|
|
"errors": {}
|
|
},
|
|
"filePaths": [
|
|
"this-expression.js"
|
|
],
|
|
"patch": [
|
|
"diff --git a/this-expression.js b/this-expression.js",
|
|
"index 45c3231..e69de29 100644",
|
|
"--- a/this-expression.js",
|
|
"+++ b/this-expression.js",
|
|
"@@ -1 +0,0 @@",
|
|
"-return this;"
|
|
],
|
|
"gitDir": "test/corpus/repos/javascript",
|
|
"shas": "dfa50df5733740923a1d747f988102b19e9ce7e0..655d7887b70794042aa3e0f4d6ea174c1b32af1c"
|
|
}]
|