haikuwebkit/LayoutTests/inspector/formatting/resources
Devin Rousso 8e719790f1 Web Inspector: Assertion Failed: Appended a string with newlines. This breaks the source map.
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
2020-08-15 01:24:02 +00:00
..
css-source-map-tests
css-tests Web Inspector: Fails to pretty-print a particular CSS file 2020-05-16 01:17:21 +00:00
html-source-map-tests
html-tests
javascript-source-map-tests Web Inspector: Assertion Failed: Appended a string with newlines. This breaks the source map. 2020-08-15 01:24:02 +00:00
javascript-tests Web Inspector: Debugger: Step Over should only step through comma expressions if they are comma statements 2020-04-22 17:24:14 +00:00
xml-tests Web Inspector: HTML Formatter - better indentation/newline handling for self closing tags 2019-09-20 21:23:20 +00:00
formatting-utilities.js
source-map-utilities.js