Skip to content

Commit 246050a

Browse files
munificentCommit Queue
authored andcommitted
Opt multitests out of formatting in corelib/ and lib/.
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. Change-Id: I34831719cd35e669b49e02a0d00c32b44068a34e Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/396103 Commit-Queue: Lasse Nielsen <[email protected]> Reviewed-by: Lasse Nielsen <[email protected]> Auto-Submit: Bob Nystrom <[email protected]>
1 parent 3140b09 commit 246050a

File tree

60 files changed

+180
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+180
-0
lines changed

tests/corelib/integer_to_radix_string_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import "package:expect/expect.dart";
69

710
main() {

tests/corelib/iterable_mapping_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import "package:expect/expect.dart";
69

710
main() {

tests/corelib/nan_infinity_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import "package:expect/expect.dart";
69

710
// Dart test program for testing NaN and Infinity.

tests/corelib/splay_tree_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
// Dart test for Splaytrees.
69
library splay_tree_test;
710

tests/lib/async/future_or_only_in_async_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
// `FutureOr<T>` is only visible when `dart:async` is imported.
69

710
dynamic foo(dynamic x) {

tests/lib/async/run_zoned6_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import "package:expect/expect.dart";
69
import 'dart:async';
710
import 'package:expect/async_helper.dart';

tests/lib/async/run_zoned9_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import "package:expect/expect.dart";
69
import 'dart:async';
710
import 'package:expect/async_helper.dart';

tests/lib/async/stream_first_where_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
library stream_controller_async_test;
69

710
import 'dart:async';

tests/lib/async/stream_last_where_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
library stream_controller_async_test;
69

710
import 'dart:async';

tests/lib/convert/base64_test.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5+
// Formatting can break multitests, so don't format them.
6+
// dart format off
7+
58
import 'dart:convert';
69
import "dart:typed_data";
710
import "package:expect/expect.dart";

0 commit comments

Comments
 (0)