Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 106 additions & 4 deletions test/fixtures/test426/range-mappings-proposal-tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,18 @@
},
{
"name": "rangeMappingsInvalidVLQZero",
"description": "VLQ of zero is invalid because offsets are 1-based",
"description": "VLQ with relative offset of 0 after the initial mapping is invalid",
"baseFile": "invalid-vlq-zero.js",
"sourceMapFile": "invalid-vlq-zero.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsInvalidMappingForRange",
"description": "Range mappings cannot point to a mapping withou an original position",
"baseFile": "invalid-mapping-for-range.js",
"sourceMapFile": "invalid-mapping-for-range.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsOutOfRange",
"description": "Test an invalid range mapping which is outside the mappings length",
Expand All @@ -57,20 +64,88 @@
"sourceMapFile": "out-of-range-2.js.map",
"sourceMapIsValid": false
},
{
"name": "rangeMappingsOutOfRange3",
"description": "Test an invalid range mapping encoded with a continuation bit that is too large",
"baseFile": "out-of-range-3.js",
"sourceMapFile": "out-of-range-3.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": "rangeMappingsExtraLinesInRangeMappings",
"description": "Test that it's ok for range mappings to have trailing empty lines not in mappings",
"baseFile": "extra-lines-in-range-mappings.js",
"sourceMapFile": "extra-lines-in-range-mappings.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": "rangeMappingsVLQContinuationBit",
"description": "Test a range mapping that uses a VLQ with continuation bit",
"baseFile": "vlq-continuation-bit.js",
"sourceMapFile": "vlq-continuation-bit.js.map",
"sourceMapIsValid": true,
"testActions": [
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 0,
"originalSource": "vlq-continuation-bit-original.js",
"originalLine": 0,
"originalColumn": 0,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 1,
"originalSource": "vlq-continuation-bit-original.js",
"originalLine": 0,
"originalColumn": 1,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 3,
"originalSource": "vlq-continuation-bit-original.js",
"originalLine": 0,
"originalColumn": 2,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 196,
"originalSource": "vlq-continuation-bit-original.js",
"originalLine": 0,
"originalColumn": 195,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 0,
"generatedColumn": 199,
"originalSource": "vlq-continuation-bit-original.js",
"originalLine": 0,
"originalColumn": 199,
"mappedName": null
}
]
},
{
"name": "rangeMappingsSimple",
"description": "Test a simple, single-entry rangeMappings",
Expand Down Expand Up @@ -138,7 +213,7 @@
"generatedColumn": 16,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 16,
"originalColumn": 17,
"mappedName": null
},
{
Expand All @@ -147,7 +222,25 @@
"generatedColumn": 18,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 18,
"originalColumn": 19,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 30,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 31,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 34,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 35,
"mappedName": null
},
{
Expand All @@ -156,7 +249,16 @@
"generatedColumn": 35,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 36,
"originalColumn": 35,
"mappedName": null
},
{
"actionType": "checkMapping",
"generatedLine": 1,
"generatedColumn": 36,
"originalSource": "multiple-mappings-original.js",
"originalLine": 0,
"originalColumn": 38,
"mappedName": null
}
]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/test426/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ suite ensures that the Node.js source map implementation conforms to the
The [`test/fixtures/test426`](../fixtures/test426/) contains a copy of the set of
[Source Map Tests][] suite. The last updated hash is:

* <https://github.com/tc39/source-map-tests/commit/9b9e225b5a63139e9a95cdd1bf874a8f0b9d1317>
* <https://github.com/tc39/source-map-tests/commit/2965987bf4c96afa400c9356c8e620cb340aaee2>

See the json files in [the `status` folder](./status) for prerequisites,
expected failures, and support status for specific tests.
Expand Down
Loading