We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addScriptTag
Example js, path is: .temp/my.js and content:
.temp/my.js
console.log("my js content with sourceMappingURL comments"); //# sourceMappingURL=my.js.map
Steps
const page = await browser.newPage(); await page.coverage.startJSCoverage(); await page.addScriptTag({ path: '.temp/my.js' }); const jsCoverage = await page.coverage.stopJSCoverage(); console.log(jsCoverage); // got nothing
However, the coverage data exists if enabled reportAnonymousScripts
reportAnonymousScripts
await page.coverage.startJSCoverage({ reportAnonymousScripts: true });
But the source becomes:
console.log("my js content with sourceMappingURL comments"); //# sourceMappingURL=my.js.map//# sourceURL=.temp/my.js
Note, the last line breaks sourceURL and sourceMappingURL
Expected
The text was updated successfully, but these errors were encountered:
fix: add new line before sourceURL
37d5fe3
Reference microsoft#29116
fix: add new line before sourceURL (#29199)
13550b7
Reference #29116
It should be fixed.
Sorry, something went wrong.
No branches or pull requests
System info
Source code
Example js, path is:
.temp/my.js
and content:Steps
However, the coverage data exists if enabled
reportAnonymousScripts
But the source becomes:
Note, the last line breaks sourceURL and sourceMappingURL
Expected
reportAnonymousScripts
The text was updated successfully, but these errors were encountered: