From b60b4df8eb89394827deec5ef639fed92ca9254a Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Mon, 29 Jul 2024 14:42:11 -0700 Subject: [PATCH] Update spec tests to latest * Update how line mapping in test harness is done for null entries * Update some skipped tests --- test/source-map-tests | 2 +- test/test-spec-tests.js | 11 +++++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/test/source-map-tests b/test/source-map-tests index 14c89744..2d2e9593 160000 --- a/test/source-map-tests +++ b/test/source-map-tests @@ -1 +1 @@ -Subproject commit 14c897444208365fc586a9c00c623bfb1955d731 +Subproject commit 2d2e9593b40f97c9bf663fa2c99b14b3c92553ad diff --git a/test/test-spec-tests.js b/test/test-spec-tests.js index 8f113160..14c3a666 100644 --- a/test/test-spec-tests.js +++ b/test/test-spec-tests.js @@ -49,7 +49,14 @@ const skippedTests = [ "ignoreListWrongType1", "ignoreListWrongType2", "ignoreListWrongType3", - "ignoreListOutOfBounds", + "ignoreListWrongType4", + "ignoreListOutOfBounds1", + "ignoreListOutOfBounds2", + // These 'file' checks aren't currently done + "fileNotAString1", + "fileNotAString2", + "indexMapFileWrongType1", + "indexMapFileWrongType2", ]; // The source-map library converts null sources to the "null" URL in its @@ -62,7 +69,7 @@ function nullish(nullOrString) { } function mapLine(line) { - return line + 1; + return line === null ? null : line + 1; } async function testMappingAction(assert, rawSourceMap, action) {