8e719790f1
https://bugs.webkit.org/show_bug.cgi?id=215494 Reviewed by Joseph Pecoraro. Source/WebInspectorUI: * UserInterface/Workers/Formatter/JSFormatter.js: (JSFormatter.prototype._insertComment): C-style comments can contain newlines, so use `appendStringWithPossibleNewlines`. LayoutTests: * inspector/formatting/resources/javascript-source-map-tests/2.js: Added. * inspector/formatting/source-map-javascript-2.html: Added. * inspector/formatting/source-map-javascript-2-expected.txt: Added. With `appendStringWithPossibleNewlines` the source map properly indents the comment inside the function body so that the `*` all line up. * TestExpectations: Canonical link: https://commits.webkit.org/228302@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@265724 268f45cc-cd09-0410-ab3c-d52691b4dbfc |
||
---|---|---|
.. | ||
css-source-map-tests | ||
css-tests | ||
html-source-map-tests | ||
html-tests | ||
javascript-source-map-tests | ||
javascript-tests | ||
xml-tests | ||
formatting-utilities.js | ||
source-map-utilities.js |