html: update constants in typescript mode (for #138677)

This commit is contained in:
Martin Aeschlimann
2021-12-09 14:14:48 +01:00
parent fdbc4f2f0c
commit 2858dd87e7
2 changed files with 139 additions and 70 deletions

View File

@@ -77,7 +77,7 @@ suite('HTML Embedded Formatting', () => {
});
test('HTML & Multiple Scripts', async () => {
await assertFormat('<html><head>\n<script>\nif(x){\nbar(); }\n</script><script>\nfunction(x){ }\n</script></head></html>', '<html>\n\n<head>\n <script>\n if (x) {\n bar();\n }\n </script>\n <script>\n function(x) {}\n </script>\n</head>\n\n</html>');
await assertFormat('<html><head>\n<script>\nif(x){\nbar(); }\n</script><script>\nfunction(x){ }\n</script></head></html>', '<html>\n\n<head>\n <script>\n if (x) {\n bar();\n }\n </script>\n <script>\n function(x) { }\n </script>\n</head>\n\n</html>');
});
test('HTML & Styles', async () => {
@@ -120,7 +120,7 @@ suite('HTML Embedded Formatting', () => {
'<body>',
'',
' <script>',
' function f(x) {}',
' function f(x) { }',
' f(function () {',
' // ',
'',
@@ -143,7 +143,7 @@ suite('HTML Embedded Formatting', () => {
'<body>',
'',
' <script>',
' function f(x) {}',
' function f(x) { }',
' f(function () {',
' // ',
'',