mirror of
https://github.com/tc39/test262.git
synced 2025-05-29 19:20:30 +02:00
In order to promote readability of the generated test material, the test generation tool may insert whitespace if the context a given expanded variable calls for it. Avoid inserting such whitespace within literal values that span multiple lines.
22 lines
663 B
JavaScript
22 lines
663 B
JavaScript
// This file was procedurally generated from the following sources:
|
|
// - tools/generation/test/fixtures/indent-string-template.case
|
|
// - tools/generation/test/fixtures/indentation/tabs.template
|
|
/*---
|
|
description: String template spanning multiple lines (Preserving "hard" indentation across newlines)
|
|
flags: [generated]
|
|
---*/
|
|
|
|
(function() {
|
|
`this string template is declared across multiple lines
|
|
|
|
which disqualifies it as a candidate for indentation
|
|
it also happens to contain ' and ".`;
|
|
|
|
if (true) {
|
|
`this string template is declared across multiple lines
|
|
|
|
which disqualifies it as a candidate for indentation
|
|
it also happens to contain ' and ".`;
|
|
}
|
|
}());
|