-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test_runner: account for newline in source maps
This commit updates the source mapping logic in the test runner to account for newline characters that are not included in line length calculations. Co-authored-by: Simon Chan <[email protected]> Fixes: #54240 PR-URL: #54444 Reviewed-By: Jake Yuesong Li <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
- Loading branch information
Showing
5 changed files
with
175 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
test/fixtures/test-runner/source-map-line-lengths/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
test/fixtures/test-runner/source-map-line-lengths/index.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
76 changes: 76 additions & 0 deletions
76
test/fixtures/test-runner/source-map-line-lengths/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
1; | ||
function a() { | ||
console.log(1); | ||
} | ||
a(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters