Skip to content

Commit f0495f0

Browse files
kallentuCommit Queue
authored andcommitted
[tests] Rename enum_shorthands tests and directory to dot_shorthands.
We renamed enum shorthands to dot shorthands. This CL updates every comment, test name, and directory name to reflect the new feature name. Bug: #57038 Change-Id: I8cae7b5d80fa9a76531c64d90aceaaf885e9854a Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/408886 Reviewed-by: Lasse Nielsen <[email protected]> Commit-Queue: Kallen Tu <[email protected]>
1 parent f006e43 commit f0495f0

File tree

44 files changed

+69
-69
lines changed

Some content is hidden

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

44 files changed

+69
-69
lines changed

tests/language/enum_shorthands/constructor/constructor_cascade_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_cascade_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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-
// Context type is propagated down in cascades for constructor enum shorthands.
5+
// Context type is propagated down in cascades for constructor dot shorthands.
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
class Cascade {
1212
late ConstructorClass ctor;

tests/language/enum_shorthands/constructor/constructor_collection_literal_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_collection_literal_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// SharedOptions=--enable-experiment=dot-shorthands
99

10-
import '../enum_shorthand_helper.dart';
10+
import '../dot_shorthand_helper.dart';
1111

1212
void main() {
1313
var ctorList = <ConstructorClass>[

tests/language/enum_shorthands/constructor/constructor_error_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_error_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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-
// Errors involving enum shorthands of constructors.
5+
// Errors involving dot shorthands of constructors.
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
void main() {
1212
// Using a constructor shorthand without any context.

tests/language/enum_shorthands/constructor/constructor_future_or_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_future_or_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
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-
// `FutureOr<S>` denotes the same namespace as `S` for enum shorthands on
5+
// `FutureOr<S>` denotes the same namespace as `S` for dot shorthands on
66
// constructors.
77

88
// SharedOptions=--enable-experiment=dot-shorthands
99

1010
import 'dart:async';
1111

12-
import '../enum_shorthand_helper.dart';
12+
import '../dot_shorthand_helper.dart';
1313

1414
class ConstructorClassFutureOrContext {
1515
final FutureOr<ConstructorClass> ctor;

tests/language/enum_shorthands/constructor/constructor_if_null_error_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_if_null_error_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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-
// Errors with `??` and enum shorthands with constructors.
5+
// Errors with `??` and dot shorthands with constructors.
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
void constructorClassTest() {
1212
ConstructorClass ctor = ConstructorClass(1);

tests/language/enum_shorthands/constructor/constructor_if_null_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_if_null_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import 'package:expect/expect.dart';
1010

11-
import '../enum_shorthand_helper.dart';
11+
import '../dot_shorthand_helper.dart';
1212

1313
ConstructorClass ctorTest(ConstructorClass? ctor) => ctor ?? .new(1);
1414

tests/language/enum_shorthands/constructor/constructor_test.dart renamed to tests/language/dot_shorthands/constructor/constructor_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
class ConstructorClassContext {
1212
final ConstructorClass? x;

tests/language/enum_shorthands/enum_shorthand_helper.dart renamed to tests/language/dot_shorthands/dot_shorthand_helper.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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-
// Common classes and enums for testing enum shorthands.
5+
// Common classes and enums for testing dot shorthands.
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

tests/language/enum_shorthands/equality/equality_ctor_error_test.dart renamed to tests/language/dot_shorthands/equality/equality_ctor_error_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
class ConstConstructorAssert {
1212
const ConstConstructorAssert.regular(ConstructorClass ctor)
@@ -492,7 +492,7 @@ void main() {
492492
rhsNeedsToBeShorthand(ctor, ctorExt, false);
493493
objectContextType(ctor, ctorExt);
494494

495-
// Test the constant evaluation for enum shorthands in const constructor
495+
// Test the constant evaluation for dot shorthands in const constructor
496496
// asserts.
497497
const ConstConstructorAssert.regular(constCtor);
498498
const ConstConstructorAssert.named(constCtor);

tests/language/enum_shorthands/equality/equality_ctor_test.dart renamed to tests/language/dot_shorthands/equality/equality_ctor_test.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
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-
// Testing the == and != behaviour for enum shorthands with constructors.
5+
// Testing the == and != behaviour for dot shorthands with constructors.
66

77
// SharedOptions=--enable-experiment=dot-shorthands
88

9-
import '../enum_shorthand_helper.dart';
9+
import '../dot_shorthand_helper.dart';
1010

1111
class ConstConstructorAssert {
1212
const ConstConstructorAssert.regular(ConstructorClass ctor)
@@ -87,7 +87,7 @@ void main() {
8787
if (ctorExt case != const .constNamed(x: 1)) print('ok');
8888
if (ctorExt case != const .constOptional(1)) print('ok');
8989

90-
// Test the constant evaluation for enum shorthands in const constructor
90+
// Test the constant evaluation for dot shorthands in const constructor
9191
// asserts.
9292
const ConstConstructorAssert.regular(constCtor);
9393
const ConstConstructorAssert.named(constCtor);

0 commit comments

Comments
 (0)