| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9a29cb0 commit 812a66f
19 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,11 +38,18 @@ | |||
| 38 | 38 | }, | |
| 39 | 39 | { | |
| 40 | 40 | "name": "rangeMappingsInvalidVLQZero", | |
| 41 | - "description": "VLQ of zero is invalid because offsets are 1-based", | ||
| 41 | + "description": "VLQ with relative offset of 0 after the initial mapping is invalid", | ||
| 42 | 42 | "baseFile": "invalid-vlq-zero.js", | |
| 43 | 43 | "sourceMapFile": "invalid-vlq-zero.js.map", | |
| 44 | 44 | "sourceMapIsValid": false | |
| 45 | 45 | }, | |
| 46 | + { | ||
| 47 | + "name": "rangeMappingsInvalidMappingForRange", | ||
| 48 | + "description": "Range mappings cannot point to a mapping withou an original position", | ||
| 49 | + "baseFile": "invalid-mapping-for-range.js", | ||
| 50 | + "sourceMapFile": "invalid-mapping-for-range.js.map", | ||
| 51 | + "sourceMapIsValid": false | ||
| 52 | + }, | ||
| 46 | 53 | { | |
| 47 | 54 | "name": "rangeMappingsOutOfRange", | |
| 48 | 55 | "description": "Test an invalid range mapping which is outside the mappings length", | |
@@ -57,20 +64,88 @@ | |||
| 57 | 64 | "sourceMapFile": "out-of-range-2.js.map", | |
| 58 | 65 | "sourceMapIsValid": false | |
| 59 | 66 | }, | |
| 67 | + { | ||
| 68 | + "name": "rangeMappingsOutOfRange3", | ||
| 69 | + "description": "Test an invalid range mapping encoded with a continuation bit that is too large", | ||
| 70 | + "baseFile": "out-of-range-3.js", | ||
| 71 | + "sourceMapFile": "out-of-range-3.js.map", | ||
| 72 | + "sourceMapIsValid": false | ||
| 73 | + }, | ||
| 60 | 74 | { | |
| 61 | 75 | "name": "rangeMappingsEmpty", | |
| 62 | 76 | "description": "Test a trivial range mapping that is the empty string", | |
| 63 | 77 | "baseFile": "empty-string.js", | |
| 64 | 78 | "sourceMapFile": "empty-string.js.map", | |
| 65 | 79 | "sourceMapIsValid": true | |
| 66 | 80 | }, | |
| 81 | + { | ||
| 82 | + "name": "rangeMappingsExtraLinesInRangeMappings", | ||
| 83 | + "description": "Test that it's ok for range mappings to have trailing empty lines not in mappings", | ||
| 84 | + "baseFile": "extra-lines-in-range-mappings.js", | ||
| 85 | + "sourceMapFile": "extra-lines-in-range-mappings.js.map", | ||
| 86 | + "sourceMapIsValid": true | ||
| 87 | + }, | ||
| 67 | 88 | { | |
| 68 | 89 | "name": "rangeMappingsNonFullLineCoverage", | |
| 69 | 90 | "description": "Test a non-empty range mapping where not all lines in the generated source are covered", | |
| 70 | 91 | "baseFile": "non-full-line-coverage.js", | |
| 71 | 92 | "sourceMapFile": "non-full-line-coverage.js.map", | |
| 72 | 93 | "sourceMapIsValid": true | |
| 73 | 94 | }, | |
| 95 | + { | ||
| 96 | + "name": "rangeMappingsVLQContinuationBit", | ||
| 97 | + "description": "Test a range mapping that uses a VLQ with continuation bit", | ||
| 98 | + "baseFile": "vlq-continuation-bit.js", | ||
| 99 | + "sourceMapFile": "vlq-continuation-bit.js.map", | ||
| 100 | + "sourceMapIsValid": true, | ||
| 101 | + "testActions": [ | ||
| 102 | + { | ||
| 103 | + "actionType": "checkMapping", | ||
| 104 | + "generatedLine": 0, | ||
| 105 | + "generatedColumn": 0, | ||
| 106 | + "originalSource": "vlq-continuation-bit-original.js", | ||
| 107 | + "originalLine": 0, | ||
| 108 | + "originalColumn": 0, | ||
| 109 | + "mappedName": null | ||
| 110 | + }, | ||
| 111 | + { | ||
| 112 | + "actionType": "checkMapping", | ||
| 113 | + "generatedLine": 0, | ||
| 114 | + "generatedColumn": 1, | ||
| 115 | + "originalSource": "vlq-continuation-bit-original.js", | ||
| 116 | + "originalLine": 0, | ||
| 117 | + "originalColumn": 1, | ||
| 118 | + "mappedName": null | ||
| 119 | + }, | ||
| 120 | + { | ||
| 121 | + "actionType": "checkMapping", | ||
| 122 | + "generatedLine": 0, | ||
| 123 | + "generatedColumn": 3, | ||
| 124 | + "originalSource": "vlq-continuation-bit-original.js", | ||
| 125 | + "originalLine": 0, | ||
| 126 | + "originalColumn": 2, | ||
| 127 | + "mappedName": null | ||
| 128 | + }, | ||
| 129 | + { | ||
| 130 | + "actionType": "checkMapping", | ||
| 131 | + "generatedLine": 0, | ||
| 132 | + "generatedColumn": 196, | ||
| 133 | + "originalSource": "vlq-continuation-bit-original.js", | ||
| 134 | + "originalLine": 0, | ||
| 135 | + "originalColumn": 195, | ||
| 136 | + "mappedName": null | ||
| 137 | + }, | ||
| 138 | + { | ||
| 139 | + "actionType": "checkMapping", | ||
| 140 | + "generatedLine": 0, | ||
| 141 | + "generatedColumn": 199, | ||
| 142 | + "originalSource": "vlq-continuation-bit-original.js", | ||
| 143 | + "originalLine": 0, | ||
| 144 | + "originalColumn": 199, | ||
| 145 | + "mappedName": null | ||
| 146 | + } | ||
| 147 | + ] | ||
| 148 | + }, | ||
| 74 | 149 | { | |
| 75 | 150 | "name": "rangeMappingsSimple", | |
| 76 | 151 | "description": "Test a simple, single-entry rangeMappings", | |
@@ -138,7 +213,7 @@ | |||
| 138 | 213 | "generatedColumn": 16, | |
| 139 | 214 | "originalSource": "multiple-mappings-original.js", | |
| 140 | 215 | "originalLine": 0, | |
| 141 | - "originalColumn": 16, | ||
| 216 | + "originalColumn": 17, | ||
| 142 | 217 | "mappedName": null | |
| 143 | 218 | }, | |
| 144 | 219 | { | |
@@ -147,7 +222,25 @@ | |||
| 147 | 222 | "generatedColumn": 18, | |
| 148 | 223 | "originalSource": "multiple-mappings-original.js", | |
| 149 | 224 | "originalLine": 0, | |
| 150 | - "originalColumn": 18, | ||
| 225 | + "originalColumn": 19, | ||
| 226 | + "mappedName": null | ||
| 227 | + }, | ||
| 228 | + { | ||
| 229 | + "actionType": "checkMapping", | ||
| 230 | + "generatedLine": 1, | ||
| 231 | + "generatedColumn": 30, | ||
| 232 | + "originalSource": "multiple-mappings-original.js", | ||
| 233 | + "originalLine": 0, | ||
| 234 | + "originalColumn": 31, | ||
| 235 | + "mappedName": null | ||
| 236 | + }, | ||
| 237 | + { | ||
| 238 | + "actionType": "checkMapping", | ||
| 239 | + "generatedLine": 1, | ||
| 240 | + "generatedColumn": 34, | ||
| 241 | + "originalSource": "multiple-mappings-original.js", | ||
| 242 | + "originalLine": 0, | ||
| 243 | + "originalColumn": 35, | ||
| 151 | 244 | "mappedName": null | |
| 152 | 245 | }, | |
| 153 | 246 | { | |
@@ -156,7 +249,16 @@ | |||
| 156 | 249 | "generatedColumn": 35, | |
| 157 | 250 | "originalSource": "multiple-mappings-original.js", | |
| 158 | 251 | "originalLine": 0, | |
| 159 | - "originalColumn": 36, | ||
| 252 | + "originalColumn": 35, | ||
| 253 | + "mappedName": null | ||
| 254 | + }, | ||
| 255 | + { | ||
| 256 | + "actionType": "checkMapping", | ||
| 257 | + "generatedLine": 1, | ||
| 258 | + "generatedColumn": 36, | ||
| 259 | + "originalSource": "multiple-mappings-original.js", | ||
| 260 | + "originalLine": 0, | ||
| 261 | + "originalColumn": 38, | ||
| 160 | 262 | "mappedName": null | |
| 161 | 263 | } | |
| 162 | 264 | ] | |
| Back | FazBrowse Home | New Git URL |
0 commit comments