-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathrange-mappings-proposal-tests.json
142 lines (142 loc) · 4.52 KB
/
range-mappings-proposal-tests.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
{
"resourceBasePath": "proposals/range-mappings",
"tests": [
{
"name": "rangeMappingsWrongType1",
"description": "Test an invalid source map with a malformed rangeMappings field",
"baseFile": "wrong-type-1.js",
"sourceMapFile": "wrong-type-1.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsWrongType2",
"description": "Test an invalid source map with a malformed rangeMappings field",
"baseFile": "wrong-type-2.js",
"sourceMapFile": "wrong-type-2.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsWrongType3",
"description": "Test an invalid source map with a malformed rangeMappings field",
"baseFile": "wrong-type-3.js",
"sourceMapFile": "wrong-type-3.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsInvalidBase64Char1",
"description": "Test an invalid range mapping with an invalid base64 character",
"baseFile": "invalid-base64-char-1.js",
"sourceMapFile": "invalid-base64-char-1.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsInvalidBase64Char2",
"description": "Test an invalid range mapping with an invalid base64 character",
"baseFile": "invalid-base64-char-2.js",
"sourceMapFile": "invalid-base64-char-2.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsOutOfRange",
"description": "Test an invalid range mapping which is outside the mappings length",
"baseFile": "out-of-range.js",
"sourceMapFile": "out-of-range.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsEmpty",
"description": "Test a trivial range mapping that is the empty string",
"baseFile": "empty-string.js",
"sourceMapFile": "empty-string.js.map",
"sourceMapIsValid": true
},
{
"name": "rangeMappingsNonFullLineCoverage",
"description": "Test a non-empty range mapping where not all lines in the generated source are covered",
"baseFile": "non-full-line-coverage.js",
"sourceMapFile": "non-full-line-coverage.js.map",
"sourceMapIsValid": true
},
{
"name": "rangeMappingsSimple",
"description": "Test a simple, single-entry rangeMappings",
"baseFile": "simple.js",
"sourceMapFile": "simple.js.map",
"sourceMapIsValid": true,
"testActions": [
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 1,
"originalSource": "simple-original.js",
"originalLine": 0,
"originalColumn": 0,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 2,
"originalSource": "simple-original.js",
"originalLine": 0,
"originalColumn": 1,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 3,
"originalSource": "simple-original.js",
"originalLine": 0,
"originalColumn": 2,
"mappedName": null
}
]
},
{
"name": "rangeMappingsNewline",
"description": "Test rangeMappings entry continues through newlines",
"baseFile": "newline-semantics.js",
"sourceMapFile": "newline-semantics.js.map",
"sourceMapIsValid": true,
"testActions": [
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 1,
"originalSource": "newline-semantics-original.js",
"originalLine": 0,
"originalColumn": 0,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 7,
"originalSource": "newline-semantics-original.js",
"originalLine": 0,
"originalColumn": 6,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 0,
"originalSource": "newline-semantics-original.js",
"originalLine": 0,
"originalColumn": 7,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 5,
"originalSource": "newline-semantics-original.js",
"originalLine": 0,
"originalColumn": 12,
"mappedName": null
}
]
}
]
}