Lines Matching defs:FormatTestJS
1 //===- unittest/Format/FormatTestJS.cpp - Formatting unit tests for JS ----===//
19 class FormatTestJS : public testing::Test {
66 TEST_F(FormatTestJS, BlockComments) {
92 TEST_F(FormatTestJS, JSDocComments) {
229 TEST_F(FormatTestJS, UnderstandsJavaScriptOperators) {
284 TEST_F(FormatTestJS, UnderstandsAmpAmp) {
288 TEST_F(FormatTestJS, LiteralOperatorsCanBeKeywords) {
292 TEST_F(FormatTestJS, ReservedWords) {
346 TEST_F(FormatTestJS, ReservedWordsMethods) {
376 TEST_F(FormatTestJS, ReservedWordsParenthesized) {
386 TEST_F(FormatTestJS, ES6DestructuringAssignment) {
394 TEST_F(FormatTestJS, ContainerLiterals) {
504 TEST_F(FormatTestJS, MethodsInObjectLiterals) {
533 TEST_F(FormatTestJS, GettersSettersVisibilityKeywords) {
552 TEST_F(FormatTestJS, SpacesInContainerLiterals) {
566 TEST_F(FormatTestJS, SingleQuotedStrings) {
570 TEST_F(FormatTestJS, GoogScopes) {
582 TEST_F(FormatTestJS, ClassExtends) {
595 TEST_F(FormatTestJS, IIFEs) {
614 TEST_F(FormatTestJS, GoogModules) {
640 TEST_F(FormatTestJS, FormatsNamespaces) {
649 TEST_F(FormatTestJS, NamespacesMayNotWrap) {
664 TEST_F(FormatTestJS, AmbientDeclarations) {
690 TEST_F(FormatTestJS, FormatsFreestandingFunctions) {
722 TEST_F(FormatTestJS, FormatsDecorators) {
783 TEST_F(FormatTestJS, GeneratorFunctions) {
810 TEST_F(FormatTestJS, AsyncFunctions) {
875 TEST_F(FormatTestJS, OverriddenMembers) {
895 TEST_F(FormatTestJS, FunctionParametersTrailingComma) {
919 TEST_F(FormatTestJS, ArrayLiterals) {
961 TEST_F(FormatTestJS, ColumnLayoutForArrayLiterals) {
972 TEST_F(FormatTestJS, TrailingCommaInsertion) {
1011 TEST_F(FormatTestJS, FunctionLiterals) {
1115 TEST_F(FormatTestJS, DontWrapEmptyLiterals) {
1124 TEST_F(FormatTestJS, InliningFunctionLiterals) {
1181 TEST_F(FormatTestJS, MultipleFunctionLiterals) {
1244 TEST_F(FormatTestJS, ArrowFunctions) {
1288 TEST_F(FormatTestJS, ArrowFunctionStyle) {
1316 TEST_F(FormatTestJS, ReturnStatements) {
1322 TEST_F(FormatTestJS, ForLoops) {
1337 TEST_F(FormatTestJS, WrapRespectsAutomaticSemicolonInsertion) {
1384 TEST_F(FormatTestJS, AddsIsTheDictKeyOnNewline) {
1394 TEST_F(FormatTestJS, AutomaticSemicolonInsertionHeuristic) {
1474 TEST_F(FormatTestJS, ImportExportASI) {
1489 TEST_F(FormatTestJS, ImportExportType) {
1500 TEST_F(FormatTestJS, ClosureStyleCasts) {
1504 TEST_F(FormatTestJS, TryCatch) {
1518 TEST_F(FormatTestJS, StringLiteralConcatenation) {
1529 TEST_F(FormatTestJS, RegexLiteralClassification) {
1557 TEST_F(FormatTestJS, RegexLiteralSpecialCharacters) {
1623 TEST_F(FormatTestJS, RegexLiteralModifiers) {
1630 TEST_F(FormatTestJS, RegexLiteralLength) {
1640 TEST_F(FormatTestJS, RegexLiteralExamples) {
1644 TEST_F(FormatTestJS, IgnoresMpegTS) {
1653 TEST_F(FormatTestJS, TypeAnnotations) {
1692 TEST_F(FormatTestJS, UnionIntersectionTypes) {
1714 TEST_F(FormatTestJS, UnionIntersectionTypesInObjectType) {
1726 TEST_F(FormatTestJS, ClassDeclarations) {
1776 TEST_F(FormatTestJS, StrictPropInitWrap) {
1785 TEST_F(FormatTestJS, InterfaceDeclarations) {
1803 TEST_F(FormatTestJS, ObjectTypesInExtendsImplements) {
1814 TEST_F(FormatTestJS, EnumDeclarations) {
1838 TEST_F(FormatTestJS, Decorators) {
1859 TEST_F(FormatTestJS, TypeAliases) {
1873 TEST_F(FormatTestJS, TypeInterfaceLineWrapping) {
1885 TEST_F(FormatTestJS, RemoveEmptyLinesInArrowFunctions) {
1898 TEST_F(FormatTestJS, Modules) {
1989 TEST_F(FormatTestJS, ImportWrapping) {
2024 TEST_F(FormatTestJS, TemplateStrings) {
2130 TEST_F(FormatTestJS, TemplateStringMultiLineExpression) {
2173 TEST_F(FormatTestJS, TemplateStringASI) {
2179 TEST_F(FormatTestJS, NestedTemplateStrings) {
2191 TEST_F(FormatTestJS, TaggedTemplateStrings) {
2202 TEST_F(FormatTestJS, CastSyntax) {
2223 TEST_F(FormatTestJS, TypeArguments) {
2239 TEST_F(FormatTestJS, UserDefinedTypeGuards) {
2247 TEST_F(FormatTestJS, OptionalTypes) {
2265 TEST_F(FormatTestJS, IndexSignature) {
2269 TEST_F(FormatTestJS, WrapAfterParen) {
2287 TEST_F(FormatTestJS, JSDocAnnotations) {
2385 TEST_F(FormatTestJS, TslintComments) {
2397 TEST_F(FormatTestJS, TscComments) {
2417 TEST_F(FormatTestJS, RequoteStringsSingle) {
2441 TEST_F(FormatTestJS, RequoteAndIndent) {
2456 TEST_F(FormatTestJS, RequoteStringsDouble) {
2464 TEST_F(FormatTestJS, RequoteStringsLeave) {
2471 TEST_F(FormatTestJS, SupportShebangLines) {
2478 TEST_F(FormatTestJS, NonNullAssertionOperator) {
2500 TEST_F(FormatTestJS, CppKeywords) {
2560 TEST_F(FormatTestJS, NullPropagatingOperator) {
2566 TEST_F(FormatTestJS, NullishCoalescingOperator) {
2574 TEST_F(FormatTestJS, AssignmentOperators) {
2583 TEST_F(FormatTestJS, Conditional) {
2592 TEST_F(FormatTestJS, ImportComments) {
2600 TEST_F(FormatTestJS, Exponentiation) {
2605 TEST_F(FormatTestJS, NestedLiterals) {
2650 TEST_F(FormatTestJS, BackslashesInComments) {
2672 TEST_F(FormatTestJS, AddsLastLinePenaltyIfEndingIsBroken) {
2692 TEST_F(FormatTestJS, ParameterNamingComment) {
2696 TEST_F(FormatTestJS, ConditionalTypes) {
2705 TEST_F(FormatTestJS, SupportPrivateFieldsAndMethods) {
2727 TEST_F(FormatTestJS, DeclaredFields) {
2734 TEST_F(FormatTestJS, NoBreakAfterAsserts) {
2749 TEST_F(FormatTestJS, NumericSeparators) {
2753 TEST_F(FormatTestJS, AlignConsecutiveDeclarations) {
2789 TEST_F(FormatTestJS, AlignConsecutiveAssignments) {
2826 TEST_F(FormatTestJS, AlignConsecutiveAssignmentsAndDeclarations) {
2863 TEST_F(FormatTestJS, DontBreakFieldsAsGoToLabels) {
2869 TEST_F(FormatTestJS, BreakAfterOpenBracket) {