Skip to content

devops(testrunner): support source maps#340

Merged
aslushnikov merged 1 commit intomicrosoft:masterfrom
aslushnikov:testrunner-source-map-support
Jan 8, 2020
Merged

devops(testrunner): support source maps#340
aslushnikov merged 1 commit intomicrosoft:masterfrom
aslushnikov:testrunner-source-map-support

Conversation

@aslushnikov
Copy link
Copy Markdown
Contributor

@aslushnikov aslushnikov commented Dec 27, 2019

This patch adds a basic source map support to test runner.

SourceMap support is powered by Chromium DevTools source map
implementation (thus copyright). Unlike popular source-map npm
module, it's sync.

The SourceMap.js file has a few modifications wrt upstream
Chromium version:

  • reverse mappings API is removed. There's no need to ever compute them
  • the upperBoundary function from DevTools' platform is inlined
  • using path to resolve source paths

Comment thread utils/testrunner/SourceMapSupport.js Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we read the bottom of the file to parse out the map location, instead of assuming it is filename.map?

Copy link
Copy Markdown
Contributor

@JoelEinbinder JoelEinbinder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

This patch adds a basic source map support to test runner.

SourceMap support is powered by Chromium DevTools source map
implementation (thus copyright). Unlike popular `source-map` npm
module, it's sync and pretty straight-forward.

The `SourceMap.js` file has a few modifications wrt upstream
Chromium version:
- reverse mappings API is removed. There's no need to ever compute them
- the `upperBoundary` function from DevTools' platform is inlined
@aslushnikov aslushnikov merged commit a187776 into microsoft:master Jan 8, 2020
@aslushnikov aslushnikov deleted the testrunner-source-map-support branch January 8, 2020 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants