From 5bb9e922dbdcdb38c7c9ac6786fcacb70c769765 Mon Sep 17 00:00:00 2001 From: Robert Nystrom Date: Thu, 21 Nov 2024 10:49:44 +0000 Subject: [PATCH] Opt multitests out of formatting in language/. The new formatter supports opting a region of code out from being formatted. I'm applying this marker to all of the multitests since those tests are often very sensitive to formatting and easily broken. This way, anyone touching a multitest (including me when I reformat the tests) doesn't have to remember to not run the formatter on it. Unfortunately, this doesn't opt out 100# of the multitests. There are a handful of multitests that also contain "@dart=" comments and are thus formatted using the old style where the "// dart format off" marker has no effect. For those, we'll have to still be careful to not accidentally format them. Change-Id: I257d0ee1eb44eee57047be06b8520f0ccc7b56d3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396162 Auto-Submit: Bob Nystrom Commit-Queue: Erik Ernst Reviewed-by: Erik Ernst --- tests/language/async/await_syntax_test.dart | 3 +++ tests/language/async/await_test.dart | 3 +++ tests/language/async/continue_label_test.dart | 3 +++ tests/language/async/switch_test.dart | 3 +++ tests/language/async/throw_in_catch_test.dart | 3 +++ .../async_star/async_star_invalid_test.dart | 3 +++ .../call/method_function_typed_value_test.dart | 3 +++ .../call/method_implicit_tear_off_test.dart | 3 +++ .../call/method_must_not_be_field_test.dart | 3 +++ .../call/method_must_not_be_getter_test.dart | 3 +++ tests/language/call/nonexistent_static_test.dart | 3 +++ tests/language/call/operator_test.dart | 3 +++ tests/language/class/cycle2_test.dart | 3 +++ tests/language/class/cycle_test.dart | 3 +++ tests/language/class/literal_static_test.dart | 3 +++ tests/language/class/literal_test.dart | 3 +++ tests/language/class/syntax_test.dart | 3 +++ .../closure/partial_tearoff_instantiation_test.dart | 3 +++ .../compile_time_constant10_test.dart | 3 +++ .../compile_time_constant13_test.dart | 3 +++ .../compile_time_constant/static4_test.dart | 3 +++ .../compile_time_constant/static5_test.dart | 3 +++ tests/language/const/cast1_test.dart | 3 +++ tests/language/const/cast2_test.dart | 3 +++ tests/language/const/constructor2_test.dart | 3 +++ tests/language/const/double_in_int_op_test.dart | 3 +++ .../const/error_multiply_initialized_test.dart | 3 +++ tests/language/const/for_in_variable_test.dart | 3 +++ tests/language/const/switch_test.dart | 3 +++ tests/language/const/types_test.dart | 3 +++ tests/language/constants_2018/const_type_test.dart | 3 +++ .../constants_2018/constant_type_literal_test.dart | 3 +++ .../constants_2018/constant_types_test.dart | 3 +++ tests/language/constants_2018/equals_test.dart | 3 +++ .../potential_const_dynamic_test.dart | 3 +++ .../constants_2018/potential_const_type_test.dart | 3 +++ .../language/constructor/duplicate_final_test.dart | 3 +++ .../explicit_instantiation_syntax_test.dart | 3 +++ .../constructor/missing_const_constructor_test.dart | 3 +++ tests/language/constructor/name_test.dart | 3 +++ .../language/constructor/named_arguments_test.dart | 3 +++ .../constructor/with_type_parameters_test.dart | 3 +++ .../await_for_syntax_error_test.dart | 3 +++ .../await_for_type_error_test.dart | 3 +++ .../for_const_error_test.dart | 3 +++ .../if_const_error_test.dart | 3 +++ .../control_flow_collections/if_promotion_test.dart | 3 +++ .../map_set_ambiguity_error_test.dart | 3 +++ .../control_flow_collections/syntax_error_test.dart | 3 +++ .../control_flow_collections/type_error_test.dart | 3 +++ tests/language/covariant/covariant_test.dart | 3 +++ tests/language/covariant/setter_test.dart | 3 +++ .../deferred/constraints_type_annotation_test.dart | 3 +++ tests/language/deferred/type_dependency_test.dart | 3 +++ .../double_literal_coercion_error_test.dart | 3 +++ tests/language/dynamic/prefix_core_test.dart | 3 +++ tests/language/enum/duplicate_test.dart | 3 +++ tests/language/enum/syntax_test.dart | 3 +++ .../exception/code_after_try_is_executed_test.dart | 3 +++ .../exception/try_catch_on_syntax_test.dart | 3 +++ tests/language/exception/try_catch_syntax_test.dart | 3 +++ tests/language/export/duplicate_collision_test.dart | 3 +++ .../extension_operation_in_const_test.dart | 3 +++ .../static_extension_silly_types_test.dart | 3 +++ .../abstract_fields_syntax_error_test.dart | 3 +++ .../external_fields_syntax_error_test.dart | 3 +++ tests/language/factory/redirection_test.dart | 3 +++ .../language/factory/with_type_parameters_test.dart | 3 +++ tests/language/field/field3_test.dart | 3 +++ tests/language/field/field6_test.dart | 3 +++ tests/language/field/initialization_order_test.dart | 3 +++ tests/language/field/override3_test.dart | 3 +++ tests/language/field/override4_test.dart | 3 +++ tests/language/field/override_test.dart | 3 +++ tests/language/field/type_check2_test.dart | 3 +++ tests/language/final/syntax_test.dart | 3 +++ tests/language/function/syntax_test.dart | 3 +++ tests/language/function/type_alias5_test.dart | 3 +++ tests/language/function/type_alias7_test.dart | 3 +++ .../function/type_parameter_bound_object_test.dart | 3 +++ tests/language/generic/closure_test.dart | 3 +++ tests/language/generic/function_bounds_test.dart | 3 +++ tests/language/generic/function_dcall_test.dart | 3 +++ tests/language/generic/function_typedef_test.dart | 3 +++ tests/language/generic/generic_test.dart | 3 +++ .../instantiate_to_bounds_super_bounded_test.dart | 3 +++ tests/language/generic/method_types_test.dart | 3 +++ tests/language/generic/type_parameter_test.dart | 3 +++ tests/language/generic_methods/bounds_test.dart | 3 +++ tests/language/generic_methods/dynamic_test.dart | 3 +++ tests/language/generic_methods/overriding_test.dart | 3 +++ .../generic_methods/recursive_bound_test.dart | 3 +++ .../generic_methods/simple_as_expression_test.dart | 3 +++ tests/language/getter/override2_test.dart | 3 +++ tests/language/getter/override_test.dart | 3 +++ .../identifier/built_in_identifier_test.dart | 3 +++ .../identifier/built_in_not_prefix_test.dart | 3 +++ .../identifier/built_in_type_annotation_test.dart | 3 +++ tests/language/identifier/known_usage_test.dart | 3 +++ tests/language/identity/const_test.dart | 3 +++ tests/language/if_null/assignment_static_test.dart | 3 +++ .../implicit_const_context_not_test.dart | 3 +++ .../implicit_const_not_default_values_test.dart | 3 +++ tests/language/interface/cycle_test.dart | 3 +++ .../interface/duplicate_implements_test.dart | 3 +++ tests/language/is/is4_test.dart | 3 +++ tests/language/library/ambiguous_test.dart | 3 +++ tests/language/library/library_test.dart | 3 +++ tests/language/list/literal4_test.dart | 3 +++ tests/language/list/literal_syntax_test.dart | 3 +++ tests/language/main/main_test.dart | 3 +++ tests/language/main/no_main_test.dart | 3 +++ .../malbounded/redirecting_factory_test.dart | 3 +++ tests/language/malformed/bound_test.dart | 3 +++ tests/language/malformed/malformed2_test.dart | 3 +++ tests/language/map/literal11_test.dart | 3 +++ tests/language/map/literal3_test.dart | 3 +++ tests/language/map/literal4_test.dart | 3 +++ tests/language/metadata/cyclic_test.dart | 3 +++ tests/language/metadata/scope1_test.dart | 3 +++ tests/language/metadata/scope2_test.dart | 3 +++ tests/language/method/override2_test.dart | 3 +++ tests/language/method/override7_test.dart | 3 +++ tests/language/method/override8_test.dart | 3 +++ tests/language/mixin/deny_listed_test.dart | 3 +++ .../mixin/forwarding_constructor4_test.dart | 3 +++ tests/language/mixin/illegal_syntax_test.dart | 3 +++ tests/language/mixin/invalid_bound2_test.dart | 3 +++ tests/language/mixin/invalid_bound_test.dart | 3 +++ tests/language/mixin/invalid_inheritance1_test.dart | 3 +++ tests/language/mixin/invalid_inheritance2_test.dart | 3 +++ .../mixin/type_parameter_inference_error_test.dart | 3 +++ ...laration_invalid_application_supertype_test.dart | 3 +++ ...in_declaration_invalid_superinvocation_test.dart | 3 +++ .../mixin_declaration_invalid_syntax_test.dart | 3 +++ .../mixin_declaration_invalid_type_test.dart | 3 +++ .../mixin_declaration_invalid_usage_test.dart | 3 +++ ...eclaration_superinvocation_application_test.dart | 3 +++ ...mixin_declaration_supertype_compatible_test.dart | 3 +++ .../mixin_legacy/invalid_inheritance2_test.dart | 3 +++ .../question_dot_produces_nullable_type_test.dart | 2 ++ ...ait_in_late_local_variable_initializer_test.dart | 2 ++ .../default_value_on_required_parameter_test.dart | 2 ++ .../nnbd/static_errors/implicit_downcasts.dart | 2 ++ ...ate_final_field_with_const_constructor_test.dart | 2 ++ .../missing_default_value_for_parameter_test.dart | 2 ++ .../missing_required_argument_test.dart | 2 ++ .../nnbd/static_errors/non_null_assertion_test.dart | 3 +++ .../not_assigned_local_if_then_else_else_test.dart | 2 ++ .../not_assigned_local_if_then_else_then_test.dart | 2 ++ .../not_assigned_local_if_then_test.dart | 2 ++ .../not_assigned_local_initializer_test.dart | 2 ++ .../not_assigned_local_try_catch_body_test.dart | 2 ++ ...assigned_local_while_true_break_before_test.dart | 2 ++ ...nitialized_non_nullable_instance_field_test.dart | 2 ++ ..._initialized_non_nullable_static_field_test.dart | 2 ++ .../not_initialized_non_nullable_top_test.dart | 2 ++ .../static_errors/nullable_function_types_test.dart | 2 ++ .../nnbd/static_errors/nullable_supertype_test.dart | 2 ++ .../nnbd/static_errors/subtype_of_never_test.dart | 2 ++ .../this_reference_in_late_field_test.dart | 3 +++ .../static_errors/throw_of_invalid_type_test.dart | 2 ++ .../unchecked_use_of_nullable_cascaded_test.dart | 2 ++ .../unchecked_use_of_nullable_test.dart | 3 +++ .../nnbd/static_errors/use_nnbd_sdk_test.dart | 3 +++ .../language/nnbd/subtyping/regress41939_test.dart | 3 +++ .../nnbd/syntax/late_modifier_error_test.dart | 2 ++ .../nnbd/syntax/nullable_type_error_test.dart | 3 +++ .../nnbd/syntax/required_modifier_error_test.dart | 2 ++ .../nnbd/type_promotion/assignment_test.dart | 2 ++ .../do_condition_is_not_type_test.dart | 2 ++ .../type_promotion/do_condition_is_type_test.dart | 2 ++ ..._expression_is_type_mutated_in_closure_test.dart | 2 ++ ...ression_outer_is_type_assigned_outside_test.dart | 2 ++ .../nnbd/type_promotion/if_is_not_type_test.dart | 2 ++ .../nnbd/type_promotion/if_is_type_test.dart | 2 ++ .../try_catch_assigned_body_test.dart | 2 ++ .../try_catch_is_not_type_exit_body_test.dart | 2 ++ ...ry_finally_outer_is_type_assigned_body_test.dart | 2 ++ ...finally_outer_is_type_assigned_finally_test.dart | 2 ++ .../type_promotion/while_condition_false_test.dart | 2 ++ .../type_promotion/while_condition_true_test.dart | 2 ++ .../no_such_method_private_setter_lib.dart | 3 +++ .../no_such_method/private_setter_test.dart | 3 +++ .../nosuchmethod_forwarding_test.dart | 3 +++ tests/language/operator/bit_operations_test.dart | 3 +++ .../language/operator/literal_unary_plus_test.dart | 3 +++ .../operator/unsigned_right_shift_test.dart | 3 +++ tests/language/override/field_test.dart | 3 +++ tests/language/override/inheritance_field_test.dart | 3 +++ .../language/override/inheritance_generic_test.dart | 3 +++ .../language/override/inheritance_method2_test.dart | 3 +++ .../language/override/inheritance_method_test.dart | 3 +++ tests/language/override/inheritance_mixed_test.dart | 3 +++ .../override/inheritance_no_such_method_test.dart | 3 +++ .../language/override/inheritance_setter_test.dart | 7 +++++++ tests/language/parameter/default_test.dart | 3 +++ tests/language/parameter/metadata_test.dart | 3 +++ tests/language/part/missing_part_of_tag_test.dart | 3 +++ tests/language/part/part2_test.dart | 3 +++ .../language/prefix/identifier_reference_test.dart | 3 +++ tests/language/redirecting/factory_bounds_test.dart | 3 +++ .../redirecting/factory_infinite_steps_test.dart | 3 +++ tests/language/redirecting/factory_upcast_test.dart | 3 +++ tests/language/regress/regress22780_test.dart | 3 +++ tests/language/regress/regress23051_test.dart | 3 +++ tests/language/regress/regress23500_test.dart | 3 +++ tests/language/regress/regress24935_test.dart | 3 +++ tests/language/regress/regress28217_test.dart | 3 +++ tests/language/regress/regress28268_test.dart | 3 +++ .../regress/regress31596_override_test.dart | 3 +++ tests/language/regress/regress32660_test.dart | 3 +++ tests/language/regress/regress34225_test.dart | 3 +++ tests/language/regress/regress6725_test.dart | 3 +++ tests/language/script/script2_test.dart | 3 +++ .../set_literals/invalid_set_literal_test.dart | 3 +++ tests/language/setter/override2_test.dart | 3 +++ tests/language/setter/override_test.dart | 3 +++ .../spread_collections/const_error_test.dart | 3 +++ .../map_set_ambiguity_error_test.dart | 3 +++ .../spread_collections/syntax_error_test.dart | 3 +++ .../spread_collections/type_error_test.dart | 3 +++ tests/language/stack_trace/rethrow_error_test.dart | 3 +++ tests/language/static/field_test.dart | 3 +++ tests/language/static/parameter_test.dart | 3 +++ tests/language/static/setter_conflicts_test.dart | 3 +++ tests/language/super/bound_closure_test.dart | 3 +++ tests/language/super/operator_index_test.dart | 3 +++ .../abstract_class_error_test.dart | 3 +++ .../abstract_mixin_application_error_test.dart | 3 +++ .../concrete_class_error_test.dart | 3 +++ .../concrete_mixin_application_error_test.dart | 3 +++ .../superinterface_variance/mixin_error_test.dart | 3 +++ tests/language/sync_star/generator2_test.dart | 3 +++ tests/language/sync_star/generator3_test.dart | 3 +++ tests/language/sync_star/yield_test.dart | 3 +++ .../syntax/deep_nesting_expression_test.dart | 3 +++ .../syntax/deep_nesting_statement_test.dart | 3 +++ tests/language/syntax/syntax_test.dart | 3 +++ tests/language/syntax/unbalanced_brace_test.dart | 3 +++ tests/language/this/in_initializer_test.dart | 3 +++ tests/language/top_level/collision1_test.dart | 3 +++ tests/language/top_level/collision2_test.dart | 3 +++ tests/language/type/alias_equality_test.dart | 3 +++ tests/language/type/constants_test.dart | 3 +++ tests/language/type_variable/bounds_test.dart | 3 +++ tests/language/type_variable/nested_test.dart | 3 +++ tests/language/typedef/cyclic_test.dart | 3 +++ .../unsorted/arg_param_trailing_comma_test.dart | 3 +++ tests/language/unsorted/cast_test.dart | 3 +++ tests/language/unsorted/cyclic_type_test.dart | 3 +++ .../unsorted/default_implementation2_test.dart | 3 +++ .../unsorted/extend_type_parameter_test.dart | 3 +++ tests/language/unsorted/fuzzy_arrows_test.dart | 3 +++ .../language/unsorted/illegal_declaration_test.dart | 3 +++ .../unsorted/keyword_type_expression_test.dart | 3 +++ .../conflicting_type_variable_and_setter_test.dart | 3 +++ .../variable/cyclic_type_variable_test.dart | 3 +++ .../variable/fixed_type_variable2_test.dart | 3 +++ .../language/variable/fixed_type_variable_test.dart | 3 +++ .../variable_declaration_metadata_test.dart | 3 +++ tests/language/vm/bool_check_stack_traces_test.dart | 13 ++++++++----- tests/language/vm/regress_33469_test.dart | 3 +++ tests/language/vm/regression_32912_test.dart | 3 +++ tests/language/vm/symbols_test.dart | 3 +++ tests/language/vm/type_vm_test.dart | 3 +++ ...urn_future_future_or_void_async_error1_test.dart | 3 +++ ...n_future_or_future_or_void_sync_error2_test.dart | 3 +++ .../return_future_or_void_sync_error4_test.dart | 3 +++ tests/language/void/void_block_return_test.dart | 3 +++ .../void/void_type_function_types_test.dart | 3 +++ tests/language/void/void_type_override_test.dart | 3 +++ 272 files changed, 789 insertions(+), 5 deletions(-) diff --git a/tests/language/async/await_syntax_test.dart b/tests/language/async/await_syntax_test.dart index c7fc8f54b4dc..5dbdb3ec342b 100644 --- a/tests/language/async/await_syntax_test.dart +++ b/tests/language/async/await_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test async/await syntax. import 'dart:async' show Stream; diff --git a/tests/language/async/await_test.dart b/tests/language/async/await_test.dart index 8ee995b24953..51d44583ba17 100644 --- a/tests/language/async/await_test.dart +++ b/tests/language/async/await_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // VMOptions= // VMOptions=--optimization-counter-threshold=20 diff --git a/tests/language/async/continue_label_test.dart b/tests/language/async/continue_label_test.dart index 7a7afeec9be8..1c78c48069b7 100644 --- a/tests/language/async/continue_label_test.dart +++ b/tests/language/async/continue_label_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/async_helper.dart"; import "package:expect/expect.dart"; diff --git a/tests/language/async/switch_test.dart b/tests/language/async/switch_test.dart index 4ef818777c96..f6a42c39a1c5 100644 --- a/tests/language/async/switch_test.dart +++ b/tests/language/async/switch_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/async_helper.dart"; import "package:expect/expect.dart"; diff --git a/tests/language/async/throw_in_catch_test.dart b/tests/language/async/throw_in_catch_test.dart index dd977fca9bbf..d32438e9993d 100644 --- a/tests/language/async/throw_in_catch_test.dart +++ b/tests/language/async/throw_in_catch_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/async_helper.dart"; import "package:expect/expect.dart"; diff --git a/tests/language/async_star/async_star_invalid_test.dart b/tests/language/async_star/async_star_invalid_test.dart index 3345de2ceb9c..8fad724b7709 100644 --- a/tests/language/async_star/async_star_invalid_test.dart +++ b/tests/language/async_star/async_star_invalid_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that various invalid uses of `yield` are disallowed. import "dart:async"; diff --git a/tests/language/call/method_function_typed_value_test.dart b/tests/language/call/method_function_typed_value_test.dart index 7aa9ed83e8ed..98bdaa75f9a8 100644 --- a/tests/language/call/method_function_typed_value_test.dart +++ b/tests/language/call/method_function_typed_value_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; int f(int i) => 2 * i; diff --git a/tests/language/call/method_implicit_tear_off_test.dart b/tests/language/call/method_implicit_tear_off_test.dart index 24446cb641b4..6ab3bb329a3b 100644 --- a/tests/language/call/method_implicit_tear_off_test.dart +++ b/tests/language/call/method_implicit_tear_off_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language/call/method_must_not_be_field_test.dart b/tests/language/call/method_must_not_be_field_test.dart index 05cbce946670..92842ff6f47f 100644 --- a/tests/language/call/method_must_not_be_field_test.dart +++ b/tests/language/call/method_must_not_be_field_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C { diff --git a/tests/language/call/method_must_not_be_getter_test.dart b/tests/language/call/method_must_not_be_getter_test.dart index ac070dd89bfb..e9421009d9f9 100644 --- a/tests/language/call/method_must_not_be_getter_test.dart +++ b/tests/language/call/method_must_not_be_getter_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program to test arithmetic operations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C { diff --git a/tests/language/call/nonexistent_static_test.dart b/tests/language/call/nonexistent_static_test.dart index 603bdded63df..74bf28564223 100644 --- a/tests/language/call/nonexistent_static_test.dart +++ b/tests/language/call/nonexistent_static_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // When attempting to call a nonexistent static method, getter or setter, check diff --git a/tests/language/call/operator_test.dart b/tests/language/call/operator_test.dart index fc82166a6f2c..e85d6306fc0c 100644 --- a/tests/language/call/operator_test.dart +++ b/tests/language/call/operator_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // simple test with no types in signature diff --git a/tests/language/class/cycle2_test.dart b/tests/language/class/cycle2_test.dart index 78f5ff0d5100..fe44caf6e24d 100644 --- a/tests/language/class/cycle2_test.dart +++ b/tests/language/class/cycle2_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// Formatting can break multitests, so don't format them. +// dart format off + class C extends B {} class A extends B {} diff --git a/tests/language/class/cycle_test.dart b/tests/language/class/cycle_test.dart index dbc11a0d6af2..5b022a9288ff 100644 --- a/tests/language/class/cycle_test.dart +++ b/tests/language/class/cycle_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super class relationship. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class Foo implements Bar {} diff --git a/tests/language/class/literal_static_test.dart b/tests/language/class/literal_static_test.dart index 27b6149329eb..64b2e02f61ff 100644 --- a/tests/language/class/literal_static_test.dart +++ b/tests/language/class/literal_static_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test class literal expressions. diff --git a/tests/language/class/literal_test.dart b/tests/language/class/literal_test.dart index 5b1c12a30b06..826b230091ac 100644 --- a/tests/language/class/literal_test.dart +++ b/tests/language/class/literal_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test class literal expressions. diff --git a/tests/language/class/syntax_test.dart b/tests/language/class/syntax_test.dart index e5a2e9b9856a..d674113bd477 100644 --- a/tests/language/class/syntax_test.dart +++ b/tests/language/class/syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { new ClassSyntaxTest(); } diff --git a/tests/language/closure/partial_tearoff_instantiation_test.dart b/tests/language/closure/partial_tearoff_instantiation_test.dart index 3561630c058f..74640a486d30 100644 --- a/tests/language/closure/partial_tearoff_instantiation_test.dart +++ b/tests/language/closure/partial_tearoff_instantiation_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; typedef F1 = void Function(T); diff --git a/tests/language/compile_time_constant/compile_time_constant10_test.dart b/tests/language/compile_time_constant/compile_time_constant10_test.dart index 19c967a2a34e..94abdcdbb6d8 100644 --- a/tests/language/compile_time_constant/compile_time_constant10_test.dart +++ b/tests/language/compile_time_constant/compile_time_constant10_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test that 'identical(a,b)' is a compile-time constant. diff --git a/tests/language/compile_time_constant/compile_time_constant13_test.dart b/tests/language/compile_time_constant/compile_time_constant13_test.dart index 189abbdb77d8..1a781f3fb3f3 100644 --- a/tests/language/compile_time_constant/compile_time_constant13_test.dart +++ b/tests/language/compile_time_constant/compile_time_constant13_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { final x; //# 01: ok //# 02: compile-time error diff --git a/tests/language/compile_time_constant/static4_test.dart b/tests/language/compile_time_constant/static4_test.dart index 8436b05ca887..b3689afd1fda 100644 --- a/tests/language/compile_time_constant/static4_test.dart +++ b/tests/language/compile_time_constant/static4_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { final _x; const A.a1( diff --git a/tests/language/compile_time_constant/static5_test.dart b/tests/language/compile_time_constant/static5_test.dart index c1666e80294b..549608cc7668 100644 --- a/tests/language/compile_time_constant/static5_test.dart +++ b/tests/language/compile_time_constant/static5_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { const A(); } diff --git a/tests/language/const/cast1_test.dart b/tests/language/const/cast1_test.dart index 2363f3f1513a..2e9813518fc5 100644 --- a/tests/language/const/cast1_test.dart +++ b/tests/language/const/cast1_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Implicit casts in constants are supported and treated as compile-time errors /// if they are not valid. diff --git a/tests/language/const/cast2_test.dart b/tests/language/const/cast2_test.dart index 326a884c0010..0eeaac96f67d 100644 --- a/tests/language/const/cast2_test.dart +++ b/tests/language/const/cast2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Explicit casts in constants are supported and treated as compile-time errors /// if they are not valid. diff --git a/tests/language/const/constructor2_test.dart b/tests/language/const/constructor2_test.dart index e8a5d63d3f9e..3df9628ab25d 100644 --- a/tests/language/const/constructor2_test.dart +++ b/tests/language/const/constructor2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for issue 14348. class A { diff --git a/tests/language/const/double_in_int_op_test.dart b/tests/language/const/double_in_int_op_test.dart index 9ff3279f5ac6..ce95356855fc 100644 --- a/tests/language/const/double_in_int_op_test.dart +++ b/tests/language/const/double_in_int_op_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { const dynamic i1 = 3; diff --git a/tests/language/const/error_multiply_initialized_test.dart b/tests/language/const/error_multiply_initialized_test.dart index 490ea0fccd21..d6d3b66497d7 100644 --- a/tests/language/const/error_multiply_initialized_test.dart +++ b/tests/language/const/error_multiply_initialized_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // If a constant constructor contains an initializer, or an initializing // formal, for a final field which itself has an initializer at its // declaration, then a compile-time error should be reported regardless of diff --git a/tests/language/const/for_in_variable_test.dart b/tests/language/const/for_in_variable_test.dart index 2eb63b7709e7..0c0b06731938 100644 --- a/tests/language/const/for_in_variable_test.dart +++ b/tests/language/const/for_in_variable_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { for ( const //# 01: compile-time error diff --git a/tests/language/const/switch_test.dart b/tests/language/const/switch_test.dart index c4048c7c6fc4..2f996241f396 100644 --- a/tests/language/const/switch_test.dart +++ b/tests/language/const/switch_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; class C { diff --git a/tests/language/const/types_test.dart b/tests/language/const/types_test.dart index 3199c0c97529..803ff45d14f0 100644 --- a/tests/language/const/types_test.dart +++ b/tests/language/const/types_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test handling of malformed types in constant expressions. use(x) {} diff --git a/tests/language/constants_2018/const_type_test.dart b/tests/language/constants_2018/const_type_test.dart index c6c3f333e859..d01aee2f8b29 100644 --- a/tests/language/constants_2018/const_type_test.dart +++ b/tests/language/constants_2018/const_type_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that types do matter when an expression is evaluated as constant. main() { diff --git a/tests/language/constants_2018/constant_type_literal_test.dart b/tests/language/constants_2018/constant_type_literal_test.dart index 99a26dbcdb2a..eacea69d08e4 100644 --- a/tests/language/constants_2018/constant_type_literal_test.dart +++ b/tests/language/constants_2018/constant_type_literal_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that non-deferred type literals are constant expressions. import "dart:core"; diff --git a/tests/language/constants_2018/constant_types_test.dart b/tests/language/constants_2018/constant_types_test.dart index 44a4d5f98d32..427fd43c1585 100644 --- a/tests/language/constants_2018/constant_types_test.dart +++ b/tests/language/constants_2018/constant_types_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that in some positions only constant types are allowed, so not // type parameters. But in other positions potentially constant types are // allowed, including type parameters. diff --git a/tests/language/constants_2018/equals_test.dart b/tests/language/constants_2018/equals_test.dart index 1610c4505a89..0bb667254796 100644 --- a/tests/language/constants_2018/equals_test.dart +++ b/tests/language/constants_2018/equals_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that equality is allowed for receivers of specific types. import "package:expect/expect.dart"; diff --git a/tests/language/constants_2018/potential_const_dynamic_test.dart b/tests/language/constants_2018/potential_const_dynamic_test.dart index 228701ecf88d..791c74a2a246 100644 --- a/tests/language/constants_2018/potential_const_dynamic_test.dart +++ b/tests/language/constants_2018/potential_const_dynamic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that a dynamic type does not affect whether an expression is // potentially constant, the actual type of the value of an expression // only matters if the expression is evaluated as a constant. diff --git a/tests/language/constants_2018/potential_const_type_test.dart b/tests/language/constants_2018/potential_const_type_test.dart index e4a26ee6be6b..eaf6492cca58 100644 --- a/tests/language/constants_2018/potential_const_type_test.dart +++ b/tests/language/constants_2018/potential_const_type_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that types do not affect whether an expression is potentially // constant, they only matter if the expression is evaluated as a constant. diff --git a/tests/language/constructor/duplicate_final_test.dart b/tests/language/constructor/duplicate_final_test.dart index 96c1d22d09bb..5bdccaf1094d 100644 --- a/tests/language/constructor/duplicate_final_test.dart +++ b/tests/language/constructor/duplicate_final_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that duplicate initialization of a final field is a runtime error. class Class { diff --git a/tests/language/constructor/explicit_instantiation_syntax_test.dart b/tests/language/constructor/explicit_instantiation_syntax_test.dart index 0556da9b785d..18cdfe1a3817 100644 --- a/tests/language/constructor/explicit_instantiation_syntax_test.dart +++ b/tests/language/constructor/explicit_instantiation_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:core' hide dynamic; import 'dart:core' as core show dynamic; diff --git a/tests/language/constructor/missing_const_constructor_test.dart b/tests/language/constructor/missing_const_constructor_test.dart index 123eccff8d94..9a5daab7f78e 100644 --- a/tests/language/constructor/missing_const_constructor_test.dart +++ b/tests/language/constructor/missing_const_constructor_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test handling of unknown constructor in const expression. class GoodClass { diff --git a/tests/language/constructor/name_test.dart b/tests/language/constructor/name_test.dart index 43e764fd886c..8599aec50112 100644 --- a/tests/language/constructor/name_test.dart +++ b/tests/language/constructor/name_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class Foo { Bar.Foo(); //# 01: compile-time error factory Bar(); //# 02: syntax error diff --git a/tests/language/constructor/named_arguments_test.dart b/tests/language/constructor/named_arguments_test.dart index 369d24bed293..7d0f0d3eba56 100644 --- a/tests/language/constructor/named_arguments_test.dart +++ b/tests/language/constructor/named_arguments_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for default constructors. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; late String message; diff --git a/tests/language/constructor/with_type_parameters_test.dart b/tests/language/constructor/with_type_parameters_test.dart index 8df17332a447..974a5b25ad06 100644 --- a/tests/language/constructor/with_type_parameters_test.dart +++ b/tests/language/constructor/with_type_parameters_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class Bar { Bar() {} //# 01: ok Bar.boo() {} //# 02: ok diff --git a/tests/language/control_flow_collections/await_for_syntax_error_test.dart b/tests/language/control_flow_collections/await_for_syntax_error_test.dart index d64303ad4ec7..3bfb6381c06d 100644 --- a/tests/language/control_flow_collections/await_for_syntax_error_test.dart +++ b/tests/language/control_flow_collections/await_for_syntax_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Use await for in non-async function. var _ = [await for (var i in Stream.empty()) i]; //# 01: compile-time error diff --git a/tests/language/control_flow_collections/await_for_type_error_test.dart b/tests/language/control_flow_collections/await_for_type_error_test.dart index e63a52e569a4..ef0c5a63a8ad 100644 --- a/tests/language/control_flow_collections/await_for_type_error_test.dart +++ b/tests/language/control_flow_collections/await_for_type_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { () async { // Non-Stream type. diff --git a/tests/language/control_flow_collections/for_const_error_test.dart b/tests/language/control_flow_collections/for_const_error_test.dart index 334863990be8..d051af40d180 100644 --- a/tests/language/control_flow_collections/for_const_error_test.dart +++ b/tests/language/control_flow_collections/for_const_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // For cannot be used in a const collection. const _ = [for (var i in []) 1]; //# 00: compile-time error diff --git a/tests/language/control_flow_collections/if_const_error_test.dart b/tests/language/control_flow_collections/if_const_error_test.dart index bc1d0e271798..3f7c10044d60 100644 --- a/tests/language/control_flow_collections/if_const_error_test.dart +++ b/tests/language/control_flow_collections/if_const_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:collection'; import 'package:expect/expect.dart'; diff --git a/tests/language/control_flow_collections/if_promotion_test.dart b/tests/language/control_flow_collections/if_promotion_test.dart index 382db011a02f..e569b9cf0291 100644 --- a/tests/language/control_flow_collections/if_promotion_test.dart +++ b/tests/language/control_flow_collections/if_promotion_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { var a = "a"; } diff --git a/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart b/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart index ae4fee43dddb..32b538fe1d6e 100644 --- a/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart +++ b/tests/language/control_flow_collections/map_set_ambiguity_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test cases where the syntax is ambiguous between maps and sets when control // flow elements contain spreads. import 'dart:collection'; diff --git a/tests/language/control_flow_collections/syntax_error_test.dart b/tests/language/control_flow_collections/syntax_error_test.dart index 8b9fa65ca751..cd95c2253c07 100644 --- a/tests/language/control_flow_collections/syntax_error_test.dart +++ b/tests/language/control_flow_collections/syntax_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // No then element. var _ = [if (true)]; //# 00: syntax error diff --git a/tests/language/control_flow_collections/type_error_test.dart b/tests/language/control_flow_collections/type_error_test.dart index 63f670624ff7..33c14819a151 100644 --- a/tests/language/control_flow_collections/type_error_test.dart +++ b/tests/language/control_flow_collections/type_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Non-Boolean if condition. var _ = [if (1) 2]; //# 00: compile-time error diff --git a/tests/language/covariant/covariant_test.dart b/tests/language/covariant/covariant_test.dart index 2ccc70872982..b342eea18882 100644 --- a/tests/language/covariant/covariant_test.dart +++ b/tests/language/covariant/covariant_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that `covariant` can be parsed (and ignored) by // dart2js and the VM. // This test only checks for non-strong mode behavior. diff --git a/tests/language/covariant/setter_test.dart b/tests/language/covariant/setter_test.dart index 81911fd7b98b..949e5f215458 100644 --- a/tests/language/covariant/setter_test.dart +++ b/tests/language/covariant/setter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {} diff --git a/tests/language/deferred/constraints_type_annotation_test.dart b/tests/language/deferred/constraints_type_annotation_test.dart index 43c87588f60d..9a0d78a9f1a6 100644 --- a/tests/language/deferred/constraints_type_annotation_test.dart +++ b/tests/language/deferred/constraints_type_annotation_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/async_helper.dart'; import 'package:expect/expect.dart'; diff --git a/tests/language/deferred/type_dependency_test.dart b/tests/language/deferred/type_dependency_test.dart index 7d31d5fd7696..e4016dcf38f1 100644 --- a/tests/language/deferred/type_dependency_test.dart +++ b/tests/language/deferred/type_dependency_test.dart @@ -2,6 +2,9 @@ // source code is governed by a BSD-style license that can be found in // the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Checks that lib1.fooX's dependencies on [A] via is-checks, as-expressions /// and type-annotations(in checked-mode) is correctly tracked. diff --git a/tests/language/double_literals/double_literal_coercion_error_test.dart b/tests/language/double_literals/double_literal_coercion_error_test.dart index 6b574fcea4db..44d2032e40ef 100644 --- a/tests/language/double_literals/double_literal_coercion_error_test.dart +++ b/tests/language/double_literals/double_literal_coercion_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Introduces a context with double as type. void notDouble([double value = 0.0]) { if (value != 0.0) throw "unreachable"; diff --git a/tests/language/dynamic/prefix_core_test.dart b/tests/language/dynamic/prefix_core_test.dart index 65da03230732..a2f56a6cbda0 100644 --- a/tests/language/dynamic/prefix_core_test.dart +++ b/tests/language/dynamic/prefix_core_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test explicit import of dart:core in the source code.. +// Formatting can break multitests, so don't format them. +// dart format off + library DynamicPrefixCoreTest.dart; import "package:expect/expect.dart"; diff --git a/tests/language/enum/duplicate_test.dart b/tests/language/enum/duplicate_test.dart index 79046521fdc6..2c5276eb22bc 100644 --- a/tests/language/enum/duplicate_test.dart +++ b/tests/language/enum/duplicate_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test for duplicate enums. library enum_duplicate_test; diff --git a/tests/language/enum/syntax_test.dart b/tests/language/enum/syntax_test.dart index 250e1ae92739..e68e7e6d0dae 100644 --- a/tests/language/enum/syntax_test.dart +++ b/tests/language/enum/syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Basic syntax test for enumeration types enum Color { red, orange, yellow, green } diff --git a/tests/language/exception/code_after_try_is_executed_test.dart b/tests/language/exception/code_after_try_is_executed_test.dart index 57ffd842cbef..85293cacb120 100644 --- a/tests/language/exception/code_after_try_is_executed_test.dart +++ b/tests/language/exception/code_after_try_is_executed_test.dart @@ -5,6 +5,9 @@ // test cannot use Expect.throws, because Expect.throws uses the same // pattern. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; main() { diff --git a/tests/language/exception/try_catch_on_syntax_test.dart b/tests/language/exception/try_catch_on_syntax_test.dart index 681080da5ba8..3d91a8b1749c 100644 --- a/tests/language/exception/try_catch_on_syntax_test.dart +++ b/tests/language/exception/try_catch_on_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MyException {} diff --git a/tests/language/exception/try_catch_syntax_test.dart b/tests/language/exception/try_catch_syntax_test.dart index 5a192d1fd7a8..af95d21176f3 100644 --- a/tests/language/exception/try_catch_syntax_test.dart +++ b/tests/language/exception/try_catch_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { testMissingCatch(); testMissingTry(); diff --git a/tests/language/export/duplicate_collision_test.dart b/tests/language/export/duplicate_collision_test.dart index 5948d9b5a346..2968bc0aaa21 100644 --- a/tests/language/export/duplicate_collision_test.dart +++ b/tests/language/export/duplicate_collision_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'duplicate_import_libd.dart'; //# 01: compile-time error void main() {} diff --git a/tests/language/extension_methods/extension_operation_in_const_test.dart b/tests/language/extension_methods/extension_operation_in_const_test.dart index 4dc4b6a81277..8a63961b9f14 100644 --- a/tests/language/extension_methods/extension_operation_in_const_test.dart +++ b/tests/language/extension_methods/extension_operation_in_const_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; extension on Object { diff --git a/tests/language/extension_methods/static_extension_silly_types_test.dart b/tests/language/extension_methods/static_extension_silly_types_test.dart index 73a079dfa028..ce5dfaff70ae 100644 --- a/tests/language/extension_methods/static_extension_silly_types_test.dart +++ b/tests/language/extension_methods/static_extension_silly_types_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests extension methods on the non-function, non-class types. import "dart:async" show FutureOr; diff --git a/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart b/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart index 71998c9e8177..dc89d515b358 100644 --- a/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart +++ b/tests/language/external_abstract_fields/abstract_fields_syntax_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that abstract instance variable declarations are abstract and // do not allow more than they should. diff --git a/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart b/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart index 2ae367153cc1..92fb71c715c0 100644 --- a/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart +++ b/tests/language/external_abstract_fields/external_fields_syntax_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that external variable declarations do not allow more // than they should. diff --git a/tests/language/factory/redirection_test.dart b/tests/language/factory/redirection_test.dart index bddc5368c697..9a2a663e8736 100644 --- a/tests/language/factory/redirection_test.dart +++ b/tests/language/factory/redirection_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A { diff --git a/tests/language/factory/with_type_parameters_test.dart b/tests/language/factory/with_type_parameters_test.dart index e0c15833cdc0..88fc590b0fe8 100644 --- a/tests/language/factory/with_type_parameters_test.dart +++ b/tests/language/factory/with_type_parameters_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class Foo { Foo._(); diff --git a/tests/language/field/field3_test.dart b/tests/language/field/field3_test.dart index 901dd06dbd74..b6b70981dc5a 100644 --- a/tests/language/field/field3_test.dart +++ b/tests/language/field/field3_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to catch error reporting bugs in class fields declarations. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C { diff --git a/tests/language/field/field6_test.dart b/tests/language/field/field6_test.dart index fcf0f40d60b9..63e3e644f7c5 100644 --- a/tests/language/field/field6_test.dart +++ b/tests/language/field/field6_test.dart @@ -4,6 +4,9 @@ // Dart test to catch error reporting bugs in class fields declarations. // Should be an error because we have a getter overriding a function name. +// Formatting can break multitests, so don't format them. +// dart format off + class A { int a() { // //# 00: ok return 1;// //# 00: ok diff --git a/tests/language/field/initialization_order_test.dart b/tests/language/field/initialization_order_test.dart index 832b712947e5..1144a38b9c0f 100644 --- a/tests/language/field/initialization_order_test.dart +++ b/tests/language/field/initialization_order_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test that field initializers are evaluated in the right order. diff --git a/tests/language/field/override3_test.dart b/tests/language/field/override3_test.dart index 9b100be75b79..4e948bb45a57 100644 --- a/tests/language/field/override3_test.dart +++ b/tests/language/field/override3_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static field conflicts with // an inherited instance member of the same name. diff --git a/tests/language/field/override4_test.dart b/tests/language/field/override4_test.dart index 0ccee61ac731..1558eec13652 100644 --- a/tests/language/field/override4_test.dart +++ b/tests/language/field/override4_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance field conflicts // with an inherited instance method of the same name. diff --git a/tests/language/field/override_test.dart b/tests/language/field/override_test.dart index 187773b3b49f..e36211228b80 100644 --- a/tests/language/field/override_test.dart +++ b/tests/language/field/override_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test overriding of fields. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {} diff --git a/tests/language/field/type_check2_test.dart b/tests/language/field/type_check2_test.dart index 3cd1f00f59fb..54061d96b0e7 100644 --- a/tests/language/field/type_check2_test.dart +++ b/tests/language/field/type_check2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { A? a; diff --git a/tests/language/final/syntax_test.dart b/tests/language/final/syntax_test.dart index 49035871fbaa..86d3544be579 100644 --- a/tests/language/final/syntax_test.dart +++ b/tests/language/final/syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; main() { diff --git a/tests/language/function/syntax_test.dart b/tests/language/function/syntax_test.dart index 3baf2dfc5cf9..77a0ce50fd19 100644 --- a/tests/language/function/syntax_test.dart +++ b/tests/language/function/syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Tests function statement and expression syntax. diff --git a/tests/language/function/type_alias5_test.dart b/tests/language/function/type_alias5_test.dart index 40d6309b4ce0..6d934acc8899 100644 --- a/tests/language/function/type_alias5_test.dart +++ b/tests/language/function/type_alias5_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for illegally self referencing function type alias. +// Formatting can break multitests, so don't format them. +// dart format off + typedef Handle Handle(String command); //# 00: compile-time error typedef F(F x); //# 01: compile-time error diff --git a/tests/language/function/type_alias7_test.dart b/tests/language/function/type_alias7_test.dart index ca8fef9c4cf5..f30b39d2628d 100644 --- a/tests/language/function/type_alias7_test.dart +++ b/tests/language/function/type_alias7_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef void funcType([int arg]); typedef void badFuncType([int arg = 0]); //# 00: compile-time error diff --git a/tests/language/function/type_parameter_bound_object_test.dart b/tests/language/function/type_parameter_bound_object_test.dart index 61486c2fa368..48988af3e965 100644 --- a/tests/language/function/type_parameter_bound_object_test.dart +++ b/tests/language/function/type_parameter_bound_object_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + Q hest(dynamic x) { if (x is Q) return x; throw "unreached"; diff --git a/tests/language/generic/closure_test.dart b/tests/language/generic/closure_test.dart index 3946c101dde0..a7a89c86d936 100644 --- a/tests/language/generic/closure_test.dart +++ b/tests/language/generic/closure_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that generic closures are properly instantiated. import 'package:expect/expect.dart'; diff --git a/tests/language/generic/function_bounds_test.dart b/tests/language/generic/function_bounds_test.dart index 4ab11d3b807c..5f173fca722a 100644 --- a/tests/language/generic/function_bounds_test.dart +++ b/tests/language/generic/function_bounds_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:math'; import 'package:expect/expect.dart'; diff --git a/tests/language/generic/function_dcall_test.dart b/tests/language/generic/function_dcall_test.dart index 28fa0dc837a6..8a6aa2547c74 100644 --- a/tests/language/generic/function_dcall_test.dart +++ b/tests/language/generic/function_dcall_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; void testCallsToGenericFn() { diff --git a/tests/language/generic/function_typedef_test.dart b/tests/language/generic/function_typedef_test.dart index a61b0b618f69..bf9d672a1d59 100644 --- a/tests/language/generic/function_typedef_test.dart +++ b/tests/language/generic/function_typedef_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test for a function type test that cannot be eliminated at compile time. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A {} diff --git a/tests/language/generic/generic_test.dart b/tests/language/generic/generic_test.dart index 16742d5d693a..a7bb66075aba 100644 --- a/tests/language/generic/generic_test.dart +++ b/tests/language/generic/generic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Dart test program testing generic type allocations and generic type tests. import "package:expect/expect.dart"; diff --git a/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart b/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart index db07f2b4f1d8..71a18649fae7 100644 --- a/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart +++ b/tests/language/generic/instantiate_to_bounds_super_bounded_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that when a super-bounded type is produced by instantiate-to-bounds, // it's properly allowed or rejected depending on the context in which it's // used. diff --git a/tests/language/generic/method_types_test.dart b/tests/language/generic/method_types_test.dart index 05c6bf120bfd..66a90dfe9af6 100644 --- a/tests/language/generic/method_types_test.dart +++ b/tests/language/generic/method_types_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; typedef Convert1 = O Function(I input); diff --git a/tests/language/generic/type_parameter_test.dart b/tests/language/generic/type_parameter_test.dart index 9009863140d5..fe5e7d56ff8e 100644 --- a/tests/language/generic/type_parameter_test.dart +++ b/tests/language/generic/type_parameter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A { diff --git a/tests/language/generic_methods/bounds_test.dart b/tests/language/generic_methods/bounds_test.dart index 365d0efc030b..947079e1dbb1 100644 --- a/tests/language/generic_methods/bounds_test.dart +++ b/tests/language/generic_methods/bounds_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a dynamic call to a generic function checks the type argument // against its bound. diff --git a/tests/language/generic_methods/dynamic_test.dart b/tests/language/generic_methods/dynamic_test.dart index 6b92dc3abce1..2564e244bfbc 100644 --- a/tests/language/generic_methods/dynamic_test.dart +++ b/tests/language/generic_methods/dynamic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that if the type of a parameter of a generic method is a type parameter, // the type of the passed argument is checked (01) at compile time // if the receiver is given via an interface-type variable, and (02) at runtime diff --git a/tests/language/generic_methods/overriding_test.dart b/tests/language/generic_methods/overriding_test.dart index 2ef1def02b8e..ac6fd6b0a919 100644 --- a/tests/language/generic_methods/overriding_test.dart +++ b/tests/language/generic_methods/overriding_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that generic methods can be overloaded (a) with widened type bounds, and // (b) using the bound as the type of the parameter in the overloaded method. diff --git a/tests/language/generic_methods/recursive_bound_test.dart b/tests/language/generic_methods/recursive_bound_test.dart index f79ce2050e57..824df19bed16 100644 --- a/tests/language/generic_methods/recursive_bound_test.dart +++ b/tests/language/generic_methods/recursive_bound_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that F-bounded quantification works for generic methods, and that types // that are passed to generic methods in dynamic calls are checked for being // recursively defined. diff --git a/tests/language/generic_methods/simple_as_expression_test.dart b/tests/language/generic_methods/simple_as_expression_test.dart index d6b3c48c2146..53007fe381b2 100644 --- a/tests/language/generic_methods/simple_as_expression_test.dart +++ b/tests/language/generic_methods/simple_as_expression_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type parameters in generic methods can be used in as-expressions. library generic_methods_simple_as_expression_test; diff --git a/tests/language/getter/override2_test.dart b/tests/language/getter/override2_test.dart index 95519a283155..47d2b219a619 100644 --- a/tests/language/getter/override2_test.dart +++ b/tests/language/getter/override2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance getter conflicts // with an inherited instance method of the same name. diff --git a/tests/language/getter/override_test.dart b/tests/language/getter/override_test.dart index 8e17d337a13d..e20765033099 100644 --- a/tests/language/getter/override_test.dart +++ b/tests/language/getter/override_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static getter conflicts with // an inherited instance member of the same name. diff --git a/tests/language/identifier/built_in_identifier_test.dart b/tests/language/identifier/built_in_identifier_test.dart index bab2510c0492..23d3d36752cc 100644 --- a/tests/language/identifier/built_in_identifier_test.dart +++ b/tests/language/identifier/built_in_identifier_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check that we can use pseudo keywords as names in function level code. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class PseudoKWTest { diff --git a/tests/language/identifier/built_in_not_prefix_test.dart b/tests/language/identifier/built_in_not_prefix_test.dart index 0225875d86fe..74b521e827bd 100644 --- a/tests/language/identifier/built_in_not_prefix_test.dart +++ b/tests/language/identifier/built_in_not_prefix_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": // diff --git a/tests/language/identifier/built_in_type_annotation_test.dart b/tests/language/identifier/built_in_type_annotation_test.dart index 7410ff72e149..6a934d1c1efc 100644 --- a/tests/language/identifier/built_in_type_annotation_test.dart +++ b/tests/language/identifier/built_in_type_annotation_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // From The Dart Programming Language Specification, section 16.33 // "Identifier Reference": // diff --git a/tests/language/identifier/known_usage_test.dart b/tests/language/identifier/known_usage_test.dart index 360869b2bd30..ea921f98fe9c 100644 --- a/tests/language/identifier/known_usage_test.dart +++ b/tests/language/identifier/known_usage_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // The identifiers listed below are mentioned in the grammar, but none of // them is a reserved word or a built-in identifier. Such an identifier can // be used just like all other identifiers, with a few exceptions. Here are diff --git a/tests/language/identity/const_test.dart b/tests/language/identity/const_test.dart index 9c62b060478d..eac8ba3187c7 100644 --- a/tests/language/identity/const_test.dart +++ b/tests/language/identity/const_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; f() {} diff --git a/tests/language/if_null/assignment_static_test.dart b/tests/language/if_null/assignment_static_test.dart index 7eee56b13234..c2a357007f52 100644 --- a/tests/language/if_null/assignment_static_test.dart +++ b/tests/language/if_null/assignment_static_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that the static type of a ??= b is the least upper bound of the // static types of a and b. diff --git a/tests/language/implicit_creation/implicit_const_context_not_test.dart b/tests/language/implicit_creation/implicit_const_context_not_test.dart index 83d75eae61ce..65987bcab0a9 100644 --- a/tests/language/implicit_creation/implicit_const_context_not_test.dart +++ b/tests/language/implicit_creation/implicit_const_context_not_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Check places that are *not* supposed to be constant contexts, diff --git a/tests/language/implicit_creation/implicit_const_not_default_values_test.dart b/tests/language/implicit_creation/implicit_const_not_default_values_test.dart index 3968dea74c57..7234be978039 100644 --- a/tests/language/implicit_creation/implicit_const_not_default_values_test.dart +++ b/tests/language/implicit_creation/implicit_const_not_default_values_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests that const/new-insertion does the right thing for default values. // A default-value expression does not introduce a const context. diff --git a/tests/language/interface/cycle_test.dart b/tests/language/interface/cycle_test.dart index 316790e4b327..44d125e31f95 100644 --- a/tests/language/interface/cycle_test.dart +++ b/tests/language/interface/cycle_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Check fail because of cycles in super interface relationship. +// Formatting can break multitests, so don't format them. +// dart format off + class C implements B {} class A implements B {} diff --git a/tests/language/interface/duplicate_implements_test.dart b/tests/language/interface/duplicate_implements_test.dart index 41c10fabd308..68103e816459 100644 --- a/tests/language/interface/duplicate_implements_test.dart +++ b/tests/language/interface/duplicate_implements_test.dart @@ -4,6 +4,9 @@ // Check that duplicate types in implements/extends list are // compile-time errors. +// Formatting can break multitests, so don't format them. +// dart format off + abstract class I {} abstract class J {} diff --git a/tests/language/is/is4_test.dart b/tests/language/is/is4_test.dart index b560557f52a7..3918a444099c 100644 --- a/tests/language/is/is4_test.dart +++ b/tests/language/is/is4_test.dart @@ -5,6 +5,9 @@ // Regression test for issue 5216. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class Foo { diff --git a/tests/language/library/ambiguous_test.dart b/tests/language/library/ambiguous_test.dart index 1c2cd6b9d564..be665c260a79 100644 --- a/tests/language/library/ambiguous_test.dart +++ b/tests/language/library/ambiguous_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // This test should fail to load because we are importing two libraries // which define the same top level name foo, and we are referring to the name. diff --git a/tests/language/library/library_test.dart b/tests/language/library/library_test.dart index 6dd7428f93d9..e0564345cf0d 100644 --- a/tests/language/library/library_test.dart +++ b/tests/language/library/library_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "nonexistent_library.dart"; //# 01: compile-time error main() { diff --git a/tests/language/list/literal4_test.dart b/tests/language/list/literal4_test.dart index 72a31d124657..5d05af9fd3a1 100644 --- a/tests/language/list/literal4_test.dart +++ b/tests/language/list/literal4_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class ListLiteral4Test { diff --git a/tests/language/list/literal_syntax_test.dart b/tests/language/list/literal_syntax_test.dart index 652d1b167683..05d87b9127aa 100644 --- a/tests/language/list/literal_syntax_test.dart +++ b/tests/language/list/literal_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; abstract class I {} diff --git a/tests/language/main/main_test.dart b/tests/language/main/main_test.dart index 6b5c24cf7bfc..72a401515d0e 100644 --- a/tests/language/main/main_test.dart +++ b/tests/language/main/main_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main( a // //# 01: ok diff --git a/tests/language/main/no_main_test.dart b/tests/language/main/no_main_test.dart index 0700b65c53e6..b3971fe0693c 100644 --- a/tests/language/main/no_main_test.dart +++ b/tests/language/main/no_main_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /* //# 01: static type warning, runtime error main() {} */ //# 01: continued diff --git a/tests/language/malbounded/redirecting_factory_test.dart b/tests/language/malbounded/redirecting_factory_test.dart index 9d2d8a9859c0..86366664191c 100644 --- a/tests/language/malbounded/redirecting_factory_test.dart +++ b/tests/language/malbounded/redirecting_factory_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A< Ta extends num // //# 02: continued diff --git a/tests/language/malformed/bound_test.dart b/tests/language/malformed/bound_test.dart index 035cedf9fe7a..ac8424431263 100644 --- a/tests/language/malformed/bound_test.dart +++ b/tests/language/malformed/bound_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C { diff --git a/tests/language/malformed/malformed2_test.dart b/tests/language/malformed/malformed2_test.dart index 79061c2419a6..bd9420807b28 100644 --- a/tests/language/malformed/malformed2_test.dart +++ b/tests/language/malformed/malformed2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + library malformed_test; // This part includes the actual tests. diff --git a/tests/language/map/literal11_test.dart b/tests/language/map/literal11_test.dart index 93643eb98782..daaab71301bc 100644 --- a/tests/language/map/literal11_test.dart +++ b/tests/language/map/literal11_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test the use type arguments on constant maps. library map_literal11_test; diff --git a/tests/language/map/literal3_test.dart b/tests/language/map/literal3_test.dart index 517ef904feda..cf7df6d33dd5 100644 --- a/tests/language/map/literal3_test.dart +++ b/tests/language/map/literal3_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Test program for map literals. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MapLiteralTest { diff --git a/tests/language/map/literal4_test.dart b/tests/language/map/literal4_test.dart index 9358e59f6c4e..cd186a450dda 100644 --- a/tests/language/map/literal4_test.dart +++ b/tests/language/map/literal4_test.dart @@ -5,6 +5,9 @@ // // Dart test program testing type checks in map literals. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class MapLiteral4Test { diff --git a/tests/language/metadata/cyclic_test.dart b/tests/language/metadata/cyclic_test.dart index 6ff4798273f8..8270fd131fd1 100644 --- a/tests/language/metadata/cyclic_test.dart +++ b/tests/language/metadata/cyclic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that metadata on a class 'Super' using subtypes of 'Super' are not // considered as cyclic inheritance or lead to crashes. diff --git a/tests/language/metadata/scope1_test.dart b/tests/language/metadata/scope1_test.dart index 6af98441438d..6207a7ba1296 100644 --- a/tests/language/metadata/scope1_test.dart +++ b/tests/language/metadata/scope1_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a type variable is not in scope for metadata declared on the type // declaration. diff --git a/tests/language/metadata/scope2_test.dart b/tests/language/metadata/scope2_test.dart index 7a66a3883e4f..a8717298d773 100644 --- a/tests/language/metadata/scope2_test.dart +++ b/tests/language/metadata/scope2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a type variable is not in scope for metadata declared on the type // declaration. diff --git a/tests/language/method/override2_test.dart b/tests/language/method/override2_test.dart index 9db40eef48d3..c79dc65100ad 100644 --- a/tests/language/method/override2_test.dart +++ b/tests/language/method/override2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Checks that an overriding method has compatible parameters. abstract class I { diff --git a/tests/language/method/override7_test.dart b/tests/language/method/override7_test.dart index 51588d5fc07b..cc28ed40c082 100644 --- a/tests/language/method/override7_test.dart +++ b/tests/language/method/override7_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when a static function conflicts // with an inherited instance member of the same name. diff --git a/tests/language/method/override8_test.dart b/tests/language/method/override8_test.dart index 677952d05c16..d254ffc80e1c 100644 --- a/tests/language/method/override8_test.dart +++ b/tests/language/method/override8_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we report a compile-time error when an instance method conflicts // with an inherited instance field or getter of the same name. diff --git a/tests/language/mixin/deny_listed_test.dart b/tests/language/mixin/deny_listed_test.dart index 5a4e570f869e..0f5107a9a741 100644 --- a/tests/language/mixin/deny_listed_test.dart +++ b/tests/language/mixin/deny_listed_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check mixin of deny-listed types. import 'package:expect/expect.dart'; diff --git a/tests/language/mixin/forwarding_constructor4_test.dart b/tests/language/mixin/forwarding_constructor4_test.dart index a5216750f614..f8cbc821a4c4 100644 --- a/tests/language/mixin/forwarding_constructor4_test.dart +++ b/tests/language/mixin/forwarding_constructor4_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that a forwarding constructor is generated even when there is an // optional parameter. diff --git a/tests/language/mixin/illegal_syntax_test.dart b/tests/language/mixin/illegal_syntax_test.dart index 22373204c7e6..c2cba8b0e97d 100644 --- a/tests/language/mixin/illegal_syntax_test.dart +++ b/tests/language/mixin/illegal_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class S { } class G { } mixin M { } diff --git a/tests/language/mixin/invalid_bound2_test.dart b/tests/language/mixin/invalid_bound2_test.dart index 77e8713996e3..93f87f36c101 100644 --- a/tests/language/mixin/invalid_bound2_test.dart +++ b/tests/language/mixin/invalid_bound2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class S0 {} class S extends S0 {} diff --git a/tests/language/mixin/invalid_bound_test.dart b/tests/language/mixin/invalid_bound_test.dart index f42c07551e23..38b646da767d 100644 --- a/tests/language/mixin/invalid_bound_test.dart +++ b/tests/language/mixin/invalid_bound_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class S0 {} class S extends S0 {} diff --git a/tests/language/mixin/invalid_inheritance1_test.dart b/tests/language/mixin/invalid_inheritance1_test.dart index 23c689a706b4..725d4862fcdc 100644 --- a/tests/language/mixin/invalid_inheritance1_test.dart +++ b/tests/language/mixin/invalid_inheritance1_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C extends Object with Malformed // //# 01: compile-time error with T // //# 02: compile-time error diff --git a/tests/language/mixin/invalid_inheritance2_test.dart b/tests/language/mixin/invalid_inheritance2_test.dart index fd2ce5b714a6..0fe98f42e314 100644 --- a/tests/language/mixin/invalid_inheritance2_test.dart +++ b/tests/language/mixin/invalid_inheritance2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C = Object with Malformed; // //# 01: compile-time error class C = Object with T; // //# 02: compile-time error class C = OBject with T; // //# 03: compile-time error diff --git a/tests/language/mixin/type_parameter_inference_error_test.dart b/tests/language/mixin/type_parameter_inference_error_test.dart index c720e4949b73..c177c36b5dff 100644 --- a/tests/language/mixin/type_parameter_inference_error_test.dart +++ b/tests/language/mixin/type_parameter_inference_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + abstract class A {} class B {} diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart index 08e33a66dba1..1a2c7d3aaad9 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_application_supertype_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid mixin applications where the supertype doesn't diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart index 8e5e9ae9f72a..a40be85926d2 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_superinvocation_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test various invalid super-invocations for mixin declarations. abstract class UnaryInt { diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart index 0ff26d6002c3..789a753e081a 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid syntax combinations. diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart index 0fad558482de..f0ce5fc3a238 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_type_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid type-declaration combinations. diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart index 83e50b4d2972..5b4422328206 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_usage_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + mixin Mixin // cannot `extend` anything. extends M //# 01: compile-time error extends Object //# 02: compile-time error diff --git a/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart b/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart index eee21d8a70db..880b5a0ef5ae 100644 --- a/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_superinvocation_application_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test various invalid mixin applications due to insufficient super-invoked // methods. diff --git a/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart b/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart index 53079790bab3..29ad023d2ce3 100644 --- a/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_supertype_compatible_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test various invalid super-constraints for mixin declarations. diff --git a/tests/language/mixin_legacy/invalid_inheritance2_test.dart b/tests/language/mixin_legacy/invalid_inheritance2_test.dart index ed27a453aada..c73092eb41d3 100644 --- a/tests/language/mixin_legacy/invalid_inheritance2_test.dart +++ b/tests/language/mixin_legacy/invalid_inheritance2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C = Object with Malformed; // //# 01: compile-time error class C = Object with T; // //# 02: compile-time error class C = OBject with T; // //# 03: compile-time error diff --git a/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart b/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart index 1df74a710a06..590fe08a75ca 100644 --- a/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart +++ b/tests/language/nnbd/resolution/question_dot_produces_nullable_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off bool c = false; diff --git a/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart b/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart index 910106a1a2cb..f2f9dc14e83a 100644 --- a/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart +++ b/tests/language/nnbd/static_errors/await_in_late_local_variable_initializer_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is a compile time error for a `late` variable initializer // to use the `await` expression. diff --git a/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart b/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart index 29ab688ceed6..55d004d81b7c 100644 --- a/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart +++ b/tests/language/nnbd/static_errors/default_value_on_required_parameter_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a required named parameter has a default value. main() {} diff --git a/tests/language/nnbd/static_errors/implicit_downcasts.dart b/tests/language/nnbd/static_errors/implicit_downcasts.dart index b19ce47628c8..7fc4b3d3b1c6 100644 --- a/tests/language/nnbd/static_errors/implicit_downcasts.dart +++ b/tests/language/nnbd/static_errors/implicit_downcasts.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to do what was once allowed as an "implicit // downcast." diff --git a/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart b/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart index d7b38988217d..b2d4d6e3329b 100644 --- a/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart +++ b/tests/language/nnbd/static_errors/late_final_field_with_const_constructor_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is not a compile time error for a `final` variable to not have // an initializer if that variable is declared as `late`. diff --git a/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart b/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart index 08b70532cad5..8f5c624808ce 100644 --- a/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart +++ b/tests/language/nnbd/static_errors/missing_default_value_for_parameter_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if an optional parameter (named or otherwise) with // no default value has a potentially non-nullable type. diff --git a/tests/language/nnbd/static_errors/missing_required_argument_test.dart b/tests/language/nnbd/static_errors/missing_required_argument_test.dart index f1201b5098bc..ae79f64058a2 100644 --- a/tests/language/nnbd/static_errors/missing_required_argument_test.dart +++ b/tests/language/nnbd/static_errors/missing_required_argument_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a named parameter that is part of a required // group is not bound to an argument at a call site. diff --git a/tests/language/nnbd/static_errors/non_null_assertion_test.dart b/tests/language/nnbd/static_errors/non_null_assertion_test.dart index d12230ce44f2..a0bc38a01d3c 100644 --- a/tests/language/nnbd/static_errors/non_null_assertion_test.dart +++ b/tests/language/nnbd/static_errors/non_null_assertion_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { void x; int i; diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart index 74c16a1753c4..b83d2e92d266 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_else_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart index 8a959fbaa935..2a798643f6a2 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_else_then_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart index 986b66104c6e..00186bdd0961 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_if_then_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart index 1edcb9c0b82e..cc6baf3fe656 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_initializer_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart index e5ddbcfb7920..153a01d2b007 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_try_catch_body_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart b/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart index 1e0bbe894456..04121e04d384 100644 --- a/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart +++ b/tests/language/nnbd/static_errors/not_assigned_local_while_true_break_before_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // It is an error if a potentially non-nullable local variable which has no // initializer expression and is not marked `late` is used before it is diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart index 6ce07359e435..478910e092dc 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_instance_field_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if an instance field with potentially non-nullable // type has no initializer expression and is not initialized in a constructor diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart index 4a5d07603a16..f399f9ce9729 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_static_field_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a static field non-nullable type has no // initializer expression. diff --git a/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart b/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart index 57c92c037b47..8d7b987b200f 100644 --- a/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart +++ b/tests/language/nnbd/static_errors/not_initialized_non_nullable_top_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if a top level variable with non-nullable type has // no initializer expression. diff --git a/tests/language/nnbd/static_errors/nullable_function_types_test.dart b/tests/language/nnbd/static_errors/nullable_function_types_test.dart index 12f2fc9f22af..c8be9bb4f743 100644 --- a/tests/language/nnbd/static_errors/nullable_function_types_test.dart +++ b/tests/language/nnbd/static_errors/nullable_function_types_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off class C { call() {} diff --git a/tests/language/nnbd/static_errors/nullable_supertype_test.dart b/tests/language/nnbd/static_errors/nullable_supertype_test.dart index a63238312e85..a2c4f75d851b 100644 --- a/tests/language/nnbd/static_errors/nullable_supertype_test.dart +++ b/tests/language/nnbd/static_errors/nullable_supertype_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to use a nullable type as a supertype. import 'package:expect/expect.dart'; diff --git a/tests/language/nnbd/static_errors/subtype_of_never_test.dart b/tests/language/nnbd/static_errors/subtype_of_never_test.dart index 636156233543..0aac201f055e 100644 --- a/tests/language/nnbd/static_errors/subtype_of_never_test.dart +++ b/tests/language/nnbd/static_errors/subtype_of_never_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error for a class to extend, implement, or mixin the type // Never. diff --git a/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart b/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart index 3c3efd14332c..6f379c083150 100644 --- a/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart +++ b/tests/language/nnbd/static_errors/this_reference_in_late_field_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. import "package:expect/expect.dart"; +// Formatting can break multitests, so don't format them. +// dart format off + void main() { final c = C(); Expect.identical(c, c); diff --git a/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart b/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart index 9a20a366e009..804ef6f38e7c 100644 --- a/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart +++ b/tests/language/nnbd/static_errors/throw_of_invalid_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error if the static type of `e` in the expression // `throw e` is not assignable to `Object`. diff --git a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart index 5773c435e6a8..24fdb8692b7c 100644 --- a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart +++ b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_cascaded_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Test that it is an error to use nullable types in unsound ways. void main() { diff --git a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart index 6c8c4a29a63f..11552b102b31 100644 --- a/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart +++ b/tests/language/nnbd/static_errors/unchecked_use_of_nullable_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/async_helper.dart'; // Test that it is an error to use nullable types in unsound ways. diff --git a/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart b/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart index 1f65c6a043fd..03294a6f2db6 100644 --- a/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart +++ b/tests/language/nnbd/static_errors/use_nnbd_sdk_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. import "package:expect/expect.dart"; +// Formatting can break multitests, so don't format them. +// dart format off + void main() { } diff --git a/tests/language/nnbd/subtyping/regress41939_test.dart b/tests/language/nnbd/subtyping/regress41939_test.dart index fd40999f37e7..8d4b1e7adfb2 100644 --- a/tests/language/nnbd/subtyping/regress41939_test.dart +++ b/tests/language/nnbd/subtyping/regress41939_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Requirements=nnbd-strong // Regression test for https://github.com/dart-lang/sdk/issues/41939 diff --git a/tests/language/nnbd/syntax/late_modifier_error_test.dart b/tests/language/nnbd/syntax/late_modifier_error_test.dart index 05ce870c61c9..f4ee5092131c 100644 --- a/tests/language/nnbd/syntax/late_modifier_error_test.dart +++ b/tests/language/nnbd/syntax/late_modifier_error_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Invalid uses of "late" modifier diff --git a/tests/language/nnbd/syntax/nullable_type_error_test.dart b/tests/language/nnbd/syntax/nullable_type_error_test.dart index 01112ab4fc13..14c70b2190e5 100644 --- a/tests/language/nnbd/syntax/nullable_type_error_test.dart +++ b/tests/language/nnbd/syntax/nullable_type_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:core'; import 'dart:core' as core; diff --git a/tests/language/nnbd/syntax/required_modifier_error_test.dart b/tests/language/nnbd/syntax/required_modifier_error_test.dart index 24ac35d98535..76491ff03c76 100644 --- a/tests/language/nnbd/syntax/required_modifier_error_test.dart +++ b/tests/language/nnbd/syntax/required_modifier_error_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off // Invalid uses of "required" modifier diff --git a/tests/language/nnbd/type_promotion/assignment_test.dart b/tests/language/nnbd/type_promotion/assignment_test.dart index 1c085e01af6f..d3e24036980e 100644 --- a/tests/language/nnbd/type_promotion/assignment_test.dart +++ b/tests/language/nnbd/type_promotion/assignment_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) { diff --git a/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart b/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart index f0117658066a..65995972d8d8 100644 --- a/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart +++ b/tests/language/nnbd/type_promotion/do_condition_is_not_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { do { diff --git a/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart b/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart index db7988c08bb0..02a58b8c821a 100644 --- a/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart +++ b/tests/language/nnbd/type_promotion/do_condition_is_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { do { diff --git a/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart b/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart index c527f6fb198d..219975eec17c 100644 --- a/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart +++ b/tests/language/nnbd/type_promotion/function_expression_is_type_mutated_in_closure_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f() { void g(Object x) { diff --git a/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart b/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart index aeaa80155b44..08ea88cf2519 100644 --- a/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart +++ b/tests/language/nnbd/type_promotion/function_expression_outer_is_type_assigned_outside_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { late void Function() g; diff --git a/tests/language/nnbd/type_promotion/if_is_not_type_test.dart b/tests/language/nnbd/type_promotion/if_is_not_type_test.dart index 16b109a699df..1ab99da1ecf9 100644 --- a/tests/language/nnbd/type_promotion/if_is_not_type_test.dart +++ b/tests/language/nnbd/type_promotion/if_is_not_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is! String) { diff --git a/tests/language/nnbd/type_promotion/if_is_type_test.dart b/tests/language/nnbd/type_promotion/if_is_type_test.dart index 62850191c46b..c1e87b826842 100644 --- a/tests/language/nnbd/type_promotion/if_is_type_test.dart +++ b/tests/language/nnbd/type_promotion/if_is_type_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) { diff --git a/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart b/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart index baf48669ff64..92d4da6f1312 100644 --- a/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_catch_assigned_body_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is! String) return; diff --git a/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart b/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart index 7e9066a361b0..2491c6c8e61d 100644 --- a/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_catch_is_not_type_exit_body_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { try { diff --git a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart index 3ce4f78c304b..2f7e75f5d408 100644 --- a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart +++ b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_body_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) { diff --git a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart index 9722738837f2..e55f8376073f 100644 --- a/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart +++ b/tests/language/nnbd/type_promotion/try_finally_outer_is_type_assigned_finally_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { if (x is String) { diff --git a/tests/language/nnbd/type_promotion/while_condition_false_test.dart b/tests/language/nnbd/type_promotion/while_condition_false_test.dart index 1d76b9d7130a..79930272b240 100644 --- a/tests/language/nnbd/type_promotion/while_condition_false_test.dart +++ b/tests/language/nnbd/type_promotion/while_condition_false_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { while (x is! String) { diff --git a/tests/language/nnbd/type_promotion/while_condition_true_test.dart b/tests/language/nnbd/type_promotion/while_condition_true_test.dart index b29dfc3bd492..4ebf2a7cca63 100644 --- a/tests/language/nnbd/type_promotion/while_condition_true_test.dart +++ b/tests/language/nnbd/type_promotion/while_condition_true_test.dart @@ -2,6 +2,8 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off void f(Object x) { while (x is String) { diff --git a/tests/language/no_such_method/no_such_method_private_setter_lib.dart b/tests/language/no_such_method/no_such_method_private_setter_lib.dart index 4f3ecb333e7f..763d314af6f9 100644 --- a/tests/language/no_such_method/no_such_method_private_setter_lib.dart +++ b/tests/language/no_such_method/no_such_method_private_setter_lib.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class Bar { int _x = -1; } diff --git a/tests/language/no_such_method/private_setter_test.dart b/tests/language/no_such_method/private_setter_test.dart index 0f110bb9d2a6..c65ecd240442 100644 --- a/tests/language/no_such_method/private_setter_test.dart +++ b/tests/language/no_such_method/private_setter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'no_such_method_private_setter_lib.dart'; class Foo implements Bar {} diff --git a/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart b/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart index d54a7846bb66..4f7868e612a6 100644 --- a/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart +++ b/tests/language/nosuchmethod_forwarding/nosuchmethod_forwarding_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Testing that `noSuchMethod` appears to use implicit forwarders (we don't // care how it's actually implemented, but it should look like that). diff --git a/tests/language/operator/bit_operations_test.dart b/tests/language/operator/bit_operations_test.dart index 06ce14c93ace..e2503d027275 100644 --- a/tests/language/operator/bit_operations_test.dart +++ b/tests/language/operator/bit_operations_test.dart @@ -4,6 +4,9 @@ // Dart test for testing bitwise operations. // VMOptions=--optimization-counter-threshold=10 --no-use-osr --no-background-compilation +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; void main() { diff --git a/tests/language/operator/literal_unary_plus_test.dart b/tests/language/operator/literal_unary_plus_test.dart index 8a2530dbd532..c7d9af1f4a05 100644 --- a/tests/language/operator/literal_unary_plus_test.dart +++ b/tests/language/operator/literal_unary_plus_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // There is no unary plus operator in Dart. main() { diff --git a/tests/language/operator/unsigned_right_shift_test.dart b/tests/language/operator/unsigned_right_shift_test.dart index d476f1ae2a0a..f3646a3038b9 100644 --- a/tests/language/operator/unsigned_right_shift_test.dart +++ b/tests/language/operator/unsigned_right_shift_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/async_helper.dart"; import "package:expect/expect.dart"; diff --git a/tests/language/override/field_test.dart b/tests/language/override/field_test.dart index 739eacd56bdd..34d87fef0e6c 100644 --- a/tests/language/override/field_test.dart +++ b/tests/language/override/field_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test checking that static/instance field shadowing do not conflict. +// Formatting can break multitests, so don't format them. +// dart format off + class A { int instanceFieldInA = 0; static int staticFieldInA = 0; diff --git a/tests/language/override/inheritance_field_test.dart b/tests/language/override/inheritance_field_test.dart index 871f1f124cef..b7c3a6562d3b 100644 --- a/tests/language/override/inheritance_field_test.dart +++ b/tests/language/override/inheritance_field_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { get getter1 => null; //# 01: ok num get getter2 => 0; //# 02: ok diff --git a/tests/language/override/inheritance_generic_test.dart b/tests/language/override/inheritance_generic_test.dart index 6256bc897efa..d797183814d8 100644 --- a/tests/language/override/inheritance_generic_test.dart +++ b/tests/language/override/inheritance_generic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { void method1(T t) => null; //# 01: ok void method2(T t) => null; //# 02: compile-time error diff --git a/tests/language/override/inheritance_method2_test.dart b/tests/language/override/inheritance_method2_test.dart index e22571f3e9bc..1756ab68c3b7 100644 --- a/tests/language/override/inheritance_method2_test.dart +++ b/tests/language/override/inheritance_method2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { new C(); } diff --git a/tests/language/override/inheritance_method_test.dart b/tests/language/override/inheritance_method_test.dart index a7870e96af20..2da631ce8ce3 100644 --- a/tests/language/override/inheritance_method_test.dart +++ b/tests/language/override/inheritance_method_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test static warnings for method overrides. class A { diff --git a/tests/language/override/inheritance_mixed_test.dart b/tests/language/override/inheritance_mixed_test.dart index d4218d658bb4..82d1789a81b9 100644 --- a/tests/language/override/inheritance_mixed_test.dart +++ b/tests/language/override/inheritance_mixed_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { var member1; //# 01: compile-time error member2() {} //# 02: compile-time error diff --git a/tests/language/override/inheritance_no_such_method_test.dart b/tests/language/override/inheritance_no_such_method_test.dart index 535f5a4f6883..a17ac322eac3 100644 --- a/tests/language/override/inheritance_no_such_method_test.dart +++ b/tests/language/override/inheritance_no_such_method_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test use of noSuchMethod in relation to abstract methods in // concrete classes. diff --git a/tests/language/override/inheritance_setter_test.dart b/tests/language/override/inheritance_setter_test.dart index 5aa2ccac5243..518109f885e2 100644 --- a/tests/language/override/inheritance_setter_test.dart +++ b/tests/language/override/inheritance_setter_test.dart @@ -1,3 +1,10 @@ +// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// Formatting can break multitests, so don't format them. +// dart format off + main() { new C(); } diff --git a/tests/language/parameter/default_test.dart b/tests/language/parameter/default_test.dart index 10a40a0c35d1..ab4c3e29e6bb 100644 --- a/tests/language/parameter/default_test.dart +++ b/tests/language/parameter/default_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C { foo(a = 1 // //# 02: syntax error diff --git a/tests/language/parameter/metadata_test.dart b/tests/language/parameter/metadata_test.dart index a2ab741a50c3..f78b34204b9f 100644 --- a/tests/language/parameter/metadata_test.dart +++ b/tests/language/parameter/metadata_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that metadata annotations can be handled on nested parameters. test( diff --git a/tests/language/part/missing_part_of_tag_test.dart b/tests/language/part/missing_part_of_tag_test.dart index ea91f42a18b8..9c4f6c29fc31 100644 --- a/tests/language/part/missing_part_of_tag_test.dart +++ b/tests/language/part/missing_part_of_tag_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test for missing part-of tag. library lib; diff --git a/tests/language/part/part2_test.dart b/tests/language/part/part2_test.dart index 706bc1f99b5c..71ac8cbadd63 100644 --- a/tests/language/part/part2_test.dart +++ b/tests/language/part/part2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + library org.dartlang.test.part2_test; part "part.dart"; //# 01: compile-time error diff --git a/tests/language/prefix/identifier_reference_test.dart b/tests/language/prefix/identifier_reference_test.dart index e59b6fea630d..7f42294e4411 100644 --- a/tests/language/prefix/identifier_reference_test.dart +++ b/tests/language/prefix/identifier_reference_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Validate the following spec text from section 16.32 (Identifier Reference): // Evaluation of an identifier expression e of the form id proceeds as // follows: diff --git a/tests/language/redirecting/factory_bounds_test.dart b/tests/language/redirecting/factory_bounds_test.dart index fcc2f547a67c..b10e2d259198 100644 --- a/tests/language/redirecting/factory_bounds_test.dart +++ b/tests/language/redirecting/factory_bounds_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Bounds checking on redirecting factories. class Foo {} diff --git a/tests/language/redirecting/factory_infinite_steps_test.dart b/tests/language/redirecting/factory_infinite_steps_test.dart index d70a86f7bc14..f8250dc13817 100644 --- a/tests/language/redirecting/factory_infinite_steps_test.dart +++ b/tests/language/redirecting/factory_infinite_steps_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // From Dart Language Specification, 0.12 M1, "7.6.2 Factories": It is // a compile-time error if a redirecting factory constructor does not // redirect to a non-redirecting factory constructor or to a diff --git a/tests/language/redirecting/factory_upcast_test.dart b/tests/language/redirecting/factory_upcast_test.dart index ff3ad11d2426..3295df4cf66e 100644 --- a/tests/language/redirecting/factory_upcast_test.dart +++ b/tests/language/redirecting/factory_upcast_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A implements B { var x; A(Object this.x); diff --git a/tests/language/regress/regress22780_test.dart b/tests/language/regress/regress22780_test.dart index 34dabd6ed5ee..c08060538530 100644 --- a/tests/language/regress/regress22780_test.dart +++ b/tests/language/regress/regress22780_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + main() { f() => "Oh, the joy of ${f()}"; print(f()); //# 01: runtime error } diff --git a/tests/language/regress/regress23051_test.dart b/tests/language/regress/regress23051_test.dart index f9837de151d0..e8d1d35edcb5 100644 --- a/tests/language/regress/regress23051_test.dart +++ b/tests/language/regress/regress23051_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for issue 23051. main() { diff --git a/tests/language/regress/regress23500_test.dart b/tests/language/regress/regress23500_test.dart index 6278fd6accdf..43fcf044addb 100644 --- a/tests/language/regress/regress23500_test.dart +++ b/tests/language/regress/regress23500_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:async"; import "package:expect/expect.dart"; diff --git a/tests/language/regress/regress24935_test.dart b/tests/language/regress/regress24935_test.dart index 22c37d48a05a..c55ab40a2e7c 100644 --- a/tests/language/regress/regress24935_test.dart +++ b/tests/language/regress/regress24935_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; import 'package:expect/async_helper.dart'; diff --git a/tests/language/regress/regress28217_test.dart b/tests/language/regress/regress28217_test.dart index a49876fad33c..8c43512ea337 100644 --- a/tests/language/regress/regress28217_test.dart +++ b/tests/language/regress/regress28217_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test non-existing redirecting constructor and // redirecting to a factory constructor. diff --git a/tests/language/regress/regress28268_test.dart b/tests/language/regress/regress28268_test.dart index a2a0bd510dd1..af6b9f92a24d 100644 --- a/tests/language/regress/regress28268_test.dart +++ b/tests/language/regress/regress28268_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; class E { diff --git a/tests/language/regress/regress31596_override_test.dart b/tests/language/regress/regress31596_override_test.dart index 592ae4409572..0e16afc28866 100644 --- a/tests/language/regress/regress31596_override_test.dart +++ b/tests/language/regress/regress31596_override_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class I0 {} class A {} diff --git a/tests/language/regress/regress32660_test.dart b/tests/language/regress/regress32660_test.dart index 081e4d2dff65..a589c94ee504 100644 --- a/tests/language/regress/regress32660_test.dart +++ b/tests/language/regress/regress32660_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // noSuchMethod does not overwrite actual implementations, so if an // implementation of a member exists that doesn't fulfill the interface it's // an error. diff --git a/tests/language/regress/regress34225_test.dart b/tests/language/regress/regress34225_test.dart index 01176729fa5c..dcfd78e78eff 100644 --- a/tests/language/regress/regress34225_test.dart +++ b/tests/language/regress/regress34225_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C { static set C(v) {} //# 01: compile-time error set C(v) {} //# 02: compile-time error diff --git a/tests/language/regress/regress6725_test.dart b/tests/language/regress/regress6725_test.dart index 96df166047b4..e7e8505aec21 100644 --- a/tests/language/regress/regress6725_test.dart +++ b/tests/language/regress/regress6725_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for a crash in dart2js. library crash_6725; diff --git a/tests/language/script/script2_test.dart b/tests/language/script/script2_test.dart index 958ac20d51de..68ee41a0012d 100644 --- a/tests/language/script/script2_test.dart +++ b/tests/language/script/script2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + /// Part file has library and import directives. // TODO(rnystrom): Using a multitest instead of making this a static error test diff --git a/tests/language/set_literals/invalid_set_literal_test.dart b/tests/language/set_literals/invalid_set_literal_test.dart index 3030d5344ced..1494813c60f7 100644 --- a/tests/language/set_literals/invalid_set_literal_test.dart +++ b/tests/language/set_literals/invalid_set_literal_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "dart:collection" show HashSet, LinkedHashSet; import "package:expect/expect.dart"; diff --git a/tests/language/setter/override2_test.dart b/tests/language/setter/override2_test.dart index 80902b745d5e..375715a2173a 100644 --- a/tests/language/setter/override2_test.dart +++ b/tests/language/setter/override2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we do not report a compile-time error when an instance setter named // foo= is declared in a class inheriting an instance method, field, or getter // named foo, or an instance setter named foo=. diff --git a/tests/language/setter/override_test.dart b/tests/language/setter/override_test.dart index 88d7402e41a8..698c0917e0be 100644 --- a/tests/language/setter/override_test.dart +++ b/tests/language/setter/override_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we do not report a compile-time error when a static setter named // foo= is declared in a class inheriting an instance method or getter named // foo, and that we do report an error if an instance setter named foo= or diff --git a/tests/language/spread_collections/const_error_test.dart b/tests/language/spread_collections/const_error_test.dart index e9fcfd2014db..8d3c64985f95 100644 --- a/tests/language/spread_collections/const_error_test.dart +++ b/tests/language/spread_collections/const_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:collection'; import 'helper_classes.dart'; diff --git a/tests/language/spread_collections/map_set_ambiguity_error_test.dart b/tests/language/spread_collections/map_set_ambiguity_error_test.dart index 00f40a8656db..9107f99e88cb 100644 --- a/tests/language/spread_collections/map_set_ambiguity_error_test.dart +++ b/tests/language/spread_collections/map_set_ambiguity_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test cases where the syntax is ambiguous between maps and sets. import 'dart:collection'; diff --git a/tests/language/spread_collections/syntax_error_test.dart b/tests/language/spread_collections/syntax_error_test.dart index 825e5dd22686..df9a401ca8fc 100644 --- a/tests/language/spread_collections/syntax_error_test.dart +++ b/tests/language/spread_collections/syntax_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Spread nothing. var _ = [...]; //# 00: syntax error diff --git a/tests/language/spread_collections/type_error_test.dart b/tests/language/spread_collections/type_error_test.dart index 3fe731ab66d8..04cc3dd4a553 100644 --- a/tests/language/spread_collections/type_error_test.dart +++ b/tests/language/spread_collections/type_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + void main() { // Spread non-iterable or non-map. var _ = [...(3)]; //# 00: compile-time error diff --git a/tests/language/stack_trace/rethrow_error_test.dart b/tests/language/stack_trace/rethrow_error_test.dart index ae1f04291e41..8acab9f2d8c2 100644 --- a/tests/language/stack_trace/rethrow_error_test.dart +++ b/tests/language/stack_trace/rethrow_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class SubclassOfError extends Error {} fail() => throw "Fail"; diff --git a/tests/language/static/field_test.dart b/tests/language/static/field_test.dart index ed054f679761..929338c865af 100644 --- a/tests/language/static/field_test.dart +++ b/tests/language/static/field_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing setting/getting/initializing static fields. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class First { diff --git a/tests/language/static/parameter_test.dart b/tests/language/static/parameter_test.dart index 24ccbf77160e..710aacd2061c 100644 --- a/tests/language/static/parameter_test.dart +++ b/tests/language/static/parameter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + foo(x , static int y // //# 01: syntax error , final static y // //# 02: syntax error diff --git a/tests/language/static/setter_conflicts_test.dart b/tests/language/static/setter_conflicts_test.dart index c8e4395a23c4..1c7fcc381132 100644 --- a/tests/language/static/setter_conflicts_test.dart +++ b/tests/language/static/setter_conflicts_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class C { static set foo(int x) {} diff --git a/tests/language/super/bound_closure_test.dart b/tests/language/super/bound_closure_test.dart index f70256cdcb6f..dcbc624b5b69 100644 --- a/tests/language/super/bound_closure_test.dart +++ b/tests/language/super/bound_closure_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class A { diff --git a/tests/language/super/operator_index_test.dart b/tests/language/super/operator_index_test.dart index 81dd1725176c..0c6207b781c3 100644 --- a/tests/language/super/operator_index_test.dart +++ b/tests/language/super/operator_index_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that we emit errors for unresolved indexing operations on super. class A { diff --git a/tests/language/superinterface_variance/abstract_class_error_test.dart b/tests/language/superinterface_variance/abstract_class_error_test.dart index 47367d1861cb..2ea966853e37 100644 --- a/tests/language/superinterface_variance/abstract_class_error_test.dart +++ b/tests/language/superinterface_variance/abstract_class_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart b/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart index 0362eabda794..05386b471d41 100644 --- a/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart +++ b/tests/language/superinterface_variance/abstract_mixin_application_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language/superinterface_variance/concrete_class_error_test.dart b/tests/language/superinterface_variance/concrete_class_error_test.dart index 3d8ac1e3c476..76416f96d3b7 100644 --- a/tests/language/superinterface_variance/concrete_class_error_test.dart +++ b/tests/language/superinterface_variance/concrete_class_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart b/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart index b9b658d8518f..2461c99f7f71 100644 --- a/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart +++ b/tests/language/superinterface_variance/concrete_mixin_application_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language/superinterface_variance/mixin_error_test.dart b/tests/language/superinterface_variance/mixin_error_test.dart index 14963f3c45c8..d0ac9a76b85e 100644 --- a/tests/language/superinterface_variance/mixin_error_test.dart +++ b/tests/language/superinterface_variance/mixin_error_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + typedef F1 = void Function(X); typedef F2 = X Function(X); typedef F3 = void Function(); diff --git a/tests/language/sync_star/generator2_test.dart b/tests/language/sync_star/generator2_test.dart index 051b6b2578a1..f83261c143b7 100644 --- a/tests/language/sync_star/generator2_test.dart +++ b/tests/language/sync_star/generator2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Simple test program for sync* generator functions. import "package:expect/expect.dart"; diff --git a/tests/language/sync_star/generator3_test.dart b/tests/language/sync_star/generator3_test.dart index d8646df9faaa..7f4a74551bee 100644 --- a/tests/language/sync_star/generator3_test.dart +++ b/tests/language/sync_star/generator3_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test program for sync* generator functions and yielding in try blocks. import "package:expect/expect.dart"; diff --git a/tests/language/sync_star/yield_test.dart b/tests/language/sync_star/yield_test.dart index 77e5594c741f..51300d286573 100644 --- a/tests/language/sync_star/yield_test.dart +++ b/tests/language/sync_star/yield_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // TODO(jmesserly): this is a copy of the language test of the same name, // we can remove this copy when we're running against those tests. import "package:expect/expect.dart"; diff --git a/tests/language/syntax/deep_nesting_expression_test.dart b/tests/language/syntax/deep_nesting_expression_test.dart index 5ab1db56d524..83c2da82db82 100644 --- a/tests/language/syntax/deep_nesting_expression_test.dart +++ b/tests/language/syntax/deep_nesting_expression_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Deeply nested expression must not crash compiler due to stack overflow. main() { diff --git a/tests/language/syntax/deep_nesting_statement_test.dart b/tests/language/syntax/deep_nesting_statement_test.dart index bb000248ad15..5b6842c4a336 100644 --- a/tests/language/syntax/deep_nesting_statement_test.dart +++ b/tests/language/syntax/deep_nesting_statement_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Deeply nested statements must not crash compiler due to stack overflow. var x = 0; diff --git a/tests/language/syntax/syntax_test.dart b/tests/language/syntax/syntax_test.dart index cc02c92b0ac1..6339a36d158b 100644 --- a/tests/language/syntax/syntax_test.dart +++ b/tests/language/syntax/syntax_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class SyntaxTest { // "this" cannot be used as a field name. SyntaxTest this; //# 01: syntax error diff --git a/tests/language/syntax/unbalanced_brace_test.dart b/tests/language/syntax/unbalanced_brace_test.dart index 5e889ccccaee..8a09c6c8d357 100644 --- a/tests/language/syntax/unbalanced_brace_test.dart +++ b/tests/language/syntax/unbalanced_brace_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test syntax errors related to unterminated braces. class A { diff --git a/tests/language/this/in_initializer_test.dart b/tests/language/this/in_initializer_test.dart index 554c15c8d7b1..1a7c5c97ef7c 100644 --- a/tests/language/this/in_initializer_test.dart +++ b/tests/language/this/in_initializer_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class A { static String? s = "something"; var a = "anything"; diff --git a/tests/language/top_level/collision1_test.dart b/tests/language/top_level/collision1_test.dart index f8d97c4b1eab..8423636c0e55 100644 --- a/tests/language/top_level/collision1_test.dart +++ b/tests/language/top_level/collision1_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + int x = 100; get x => 200; // //# 00: compile-time error diff --git a/tests/language/top_level/collision2_test.dart b/tests/language/top_level/collision2_test.dart index 0d9734e36e63..b38944660bdf 100644 --- a/tests/language/top_level/collision2_test.dart +++ b/tests/language/top_level/collision2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + get x => 200; // Ok: can have a setter named x when getter x is defined. diff --git a/tests/language/type/alias_equality_test.dart b/tests/language/type/alias_equality_test.dart index 7ee087a68a90..a9638e53b23a 100644 --- a/tests/language/type/alias_equality_test.dart +++ b/tests/language/type/alias_equality_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type aliases perform equality tests according to the // underlying function type, not as if they were a distinct type // for each type alias declaration. diff --git a/tests/language/type/constants_test.dart b/tests/language/type/constants_test.dart index 9c83212a8388..f1266c03ca4f 100644 --- a/tests/language/type/constants_test.dart +++ b/tests/language/type/constants_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that the value of constant type literals are allowed as // constant map keys and case expressions, and the value of non-constant type // literals are not. diff --git a/tests/language/type_variable/bounds_test.dart b/tests/language/type_variable/bounds_test.dart index c23942de8ba9..6bc2c16070b5 100644 --- a/tests/language/type_variable/bounds_test.dart +++ b/tests/language/type_variable/bounds_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test of parameterized factory methods. class Foo { diff --git a/tests/language/type_variable/nested_test.dart b/tests/language/type_variable/nested_test.dart index 423ce6d4e725..c32ada63c01d 100644 --- a/tests/language/type_variable/nested_test.dart +++ b/tests/language/type_variable/nested_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Regression test for // http://code.google.com/p/dart/issues/detail?id=9050. diff --git a/tests/language/typedef/cyclic_test.dart b/tests/language/typedef/cyclic_test.dart index 6da9ad6e197b..39e6cd11314d 100644 --- a/tests/language/typedef/cyclic_test.dart +++ b/tests/language/typedef/cyclic_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Check that cyclic reference of a typedef is a compile-time error. // To test various cyclic references the definition of the [:typedef A():] is diff --git a/tests/language/unsorted/arg_param_trailing_comma_test.dart b/tests/language/unsorted/arg_param_trailing_comma_test.dart index 9119dfa1b309..88bdddc49a1b 100644 --- a/tests/language/unsorted/arg_param_trailing_comma_test.dart +++ b/tests/language/unsorted/arg_param_trailing_comma_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for testing params. +// Formatting can break multitests, so don't format them. +// dart format off + // Convenience values. var c = new C(); var x = 42; diff --git a/tests/language/unsorted/cast_test.dart b/tests/language/unsorted/cast_test.dart index 5f14ccd0b7ee..205b4c7ed0c8 100644 --- a/tests/language/unsorted/cast_test.dart +++ b/tests/language/unsorted/cast_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test program for constructors and initializers. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; // Test 'expression as Type' casts. diff --git a/tests/language/unsorted/cyclic_type_test.dart b/tests/language/unsorted/cyclic_type_test.dart index 5a9c320ec45e..9d7e28898ee0 100644 --- a/tests/language/unsorted/cyclic_type_test.dart +++ b/tests/language/unsorted/cyclic_type_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Prevent obfuscation: // dart2jsOptions=--no-minify diff --git a/tests/language/unsorted/default_implementation2_test.dart b/tests/language/unsorted/default_implementation2_test.dart index 0a3607c38ccd..b80417927c28 100644 --- a/tests/language/unsorted/default_implementation2_test.dart +++ b/tests/language/unsorted/default_implementation2_test.dart @@ -3,6 +3,9 @@ // BSD-style license that can be found in the LICENSE file. // Dart test to verify incompatible constructor types +// Formatting can break multitests, so don't format them. +// dart format off + abstract class Point { factory Point(int x, int y) = PointImplementation; //# 01: ok factory Point(x, y) = PointImplementation; //# 02: compile-time error diff --git a/tests/language/unsorted/extend_type_parameter_test.dart b/tests/language/unsorted/extend_type_parameter_test.dart index 58991f5e8936..6f5ccbeea49c 100644 --- a/tests/language/unsorted/extend_type_parameter_test.dart +++ b/tests/language/unsorted/extend_type_parameter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Extending a type parameter is not allowed. abstract class A extends T {} // //# 00: compile-time error diff --git a/tests/language/unsorted/fuzzy_arrows_test.dart b/tests/language/unsorted/fuzzy_arrows_test.dart index 4cbe86c1502b..840c0b5e482b 100644 --- a/tests/language/unsorted/fuzzy_arrows_test.dart +++ b/tests/language/unsorted/fuzzy_arrows_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Fuzzy arrows will be eliminated from Dart 2.0 soon. This test checks that // implementations have properly removed fuzzy arrow support, both at compile // time and at run time. See dartbug.com/29630 for a detailed explanation. diff --git a/tests/language/unsorted/illegal_declaration_test.dart b/tests/language/unsorted/illegal_declaration_test.dart index 6b8714bf8b34..79f98ee3ab51 100644 --- a/tests/language/unsorted/illegal_declaration_test.dart +++ b/tests/language/unsorted/illegal_declaration_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + [ //# 01: syntax error main() {} diff --git a/tests/language/unsorted/keyword_type_expression_test.dart b/tests/language/unsorted/keyword_type_expression_test.dart index 5d981efd2114..5703324c8a82 100644 --- a/tests/language/unsorted/keyword_type_expression_test.dart +++ b/tests/language/unsorted/keyword_type_expression_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that a keyword can't be used as type. Serves as regression test for // crashes in dart2js. diff --git a/tests/language/variable/conflicting_type_variable_and_setter_test.dart b/tests/language/variable/conflicting_type_variable_and_setter_test.dart index 1ec0ee64a572..09dec2ad2302 100644 --- a/tests/language/variable/conflicting_type_variable_and_setter_test.dart +++ b/tests/language/variable/conflicting_type_variable_and_setter_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C< diff --git a/tests/language/variable/cyclic_type_variable_test.dart b/tests/language/variable/cyclic_type_variable_test.dart index 78b2512be03d..8c7818ba71fa 100644 --- a/tests/language/variable/cyclic_type_variable_test.dart +++ b/tests/language/variable/cyclic_type_variable_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Tests cyclic reference to type variables in type expressions class Base {} diff --git a/tests/language/variable/fixed_type_variable2_test.dart b/tests/language/variable/fixed_type_variable2_test.dart index 0cb6790d0cec..481dc567f34f 100644 --- a/tests/language/variable/fixed_type_variable2_test.dart +++ b/tests/language/variable/fixed_type_variable2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance. diff --git a/tests/language/variable/fixed_type_variable_test.dart b/tests/language/variable/fixed_type_variable_test.dart index 24dc2314a981..0065f93aa098 100644 --- a/tests/language/variable/fixed_type_variable_test.dart +++ b/tests/language/variable/fixed_type_variable_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Test that type variables are passed on from subtypes that fixed the type // variable in inheritance. diff --git a/tests/language/variable/variable_declaration_metadata_test.dart b/tests/language/variable/variable_declaration_metadata_test.dart index 24793de1a5b1..f2d950188e23 100644 --- a/tests/language/variable/variable_declaration_metadata_test.dart +++ b/tests/language/variable/variable_declaration_metadata_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Verify that the individual variable declarations inside a variable // declaration list are not allowed to be annotated with metadata. diff --git a/tests/language/vm/bool_check_stack_traces_test.dart b/tests/language/vm/bool_check_stack_traces_test.dart index 4daab74687bf..18caae51b7a6 100644 --- a/tests/language/vm/bool_check_stack_traces_test.dart +++ b/tests/language/vm/bool_check_stack_traces_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; import "package:expect/variations.dart"; @@ -102,9 +105,9 @@ void testStackTrace(void testCase(dynamic condition), List lineNumbers) { } main() { - testStackTrace(test1, [10, 19]); - testStackTrace(test2, [27, 36]); - testStackTrace(test3, [46, 55]); - testStackTrace(test4, [61]); //# 01: ok - testStackTrace(test5, [68]); //# 02: ok + testStackTrace(test1, [13, 22]); + testStackTrace(test2, [30, 39]); + testStackTrace(test3, [49, 58]); + testStackTrace(test4, [64]); //# 01: ok + testStackTrace(test5, [71]); //# 02: ok } diff --git a/tests/language/vm/regress_33469_test.dart b/tests/language/vm/regress_33469_test.dart index 831704ebe036..d3c6a1c46c18 100644 --- a/tests/language/vm/regress_33469_test.dart +++ b/tests/language/vm/regress_33469_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + class X { final x; const X(this.x); diff --git a/tests/language/vm/regression_32912_test.dart b/tests/language/vm/regression_32912_test.dart index 2a63ff642bd2..fe7544ad4d87 100644 --- a/tests/language/vm/regression_32912_test.dart +++ b/tests/language/vm/regression_32912_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + dynamic _defaultCallback(T t) => t; void bar([dynamic Function(T) f = _defaultCallback]) {} //# 01: compile-time error diff --git a/tests/language/vm/symbols_test.dart b/tests/language/vm/symbols_test.dart index d605a3a3c494..89ae47f5c4bf 100644 --- a/tests/language/vm/symbols_test.dart +++ b/tests/language/vm/symbols_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'package:expect/expect.dart'; void main() { diff --git a/tests/language/vm/type_vm_test.dart b/tests/language/vm/type_vm_test.dart index 14189b6342e8..aa3017de7d71 100644 --- a/tests/language/vm/type_vm_test.dart +++ b/tests/language/vm/type_vm_test.dart @@ -4,6 +4,9 @@ // VMOptions=--enable_type_checks --enable_asserts --no_show_internal_names // Dart test program testing type checks. +// Formatting can break multitests, so don't format them. +// dart format off + import "package:expect/expect.dart"; class C { diff --git a/tests/language/void/return_future_future_or_void_async_error1_test.dart b/tests/language/void/return_future_future_or_void_async_error1_test.dart index daf16677e055..9aaec0857b41 100644 --- a/tests/language/void/return_future_future_or_void_async_error1_test.dart +++ b/tests/language/void/return_future_future_or_void_async_error1_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() { diff --git a/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart b/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart index 6a09786d4d4e..54efb25459e2 100644 --- a/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart +++ b/tests/language/void/return_future_or_future_or_void_sync_error2_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() { diff --git a/tests/language/void/return_future_or_void_sync_error4_test.dart b/tests/language/void/return_future_or_void_sync_error4_test.dart index c1defcb4596d..c62cc6914763 100644 --- a/tests/language/void/return_future_or_void_sync_error4_test.dart +++ b/tests/language/void/return_future_or_void_sync_error4_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + import 'dart:async'; void main() { diff --git a/tests/language/void/void_block_return_test.dart b/tests/language/void/void_block_return_test.dart index 8dd8badd93aa..1f6a60af6f8e 100644 --- a/tests/language/void/void_block_return_test.dart +++ b/tests/language/void/void_block_return_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Testing that a void block function is not allowed to `return e` // where `e` is non-void. diff --git a/tests/language/void/void_type_function_types_test.dart b/tests/language/void/void_type_function_types_test.dart index db4f880b6a3c..ecb174bd671e 100644 --- a/tests/language/void/void_type_function_types_test.dart +++ b/tests/language/void/void_type_function_types_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Dart test for type checks involving the void type in function types. import 'package:expect/expect.dart'; diff --git a/tests/language/void/void_type_override_test.dart b/tests/language/void/void_type_override_test.dart index d4749adf2a24..b7347808cc92 100644 --- a/tests/language/void/void_type_override_test.dart +++ b/tests/language/void/void_type_override_test.dart @@ -2,6 +2,9 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. +// Formatting can break multitests, so don't format them. +// dart format off + // Dart test for type checks involving the void type and overriding. import 'package:expect/expect.dart';