Skip to content

Commit 51f0768

Browse files
authored
Tidy some tests after stable Dart release (#3839)
1 parent d629e1e commit 51f0768

File tree

6 files changed

+1
-34
lines changed

6 files changed

+1
-34
lines changed

test/class_modifiers_test.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ class ClassModifiersTest extends DartdocTestBase {
2727
@override
2828
String get libraryName => 'class_modifiers';
2929

30-
@override
31-
String get sdkConstraint => '>=3.0.0-0.0-dev <4.0.0';
32-
33-
@override
34-
List<String> get experiments => ['class-modifiers', 'sealed-class'];
35-
3630
/// From the table in the class modifiers feature specification.
3731
void test_tableOfModifiers() async {
3832
var library = await bootPackageWithLibrary('''

test/constant_values_test.dart

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ import 'src/utils.dart';
1111
void main() {
1212
defineReflectiveSuite(() {
1313
defineReflectiveTests(ConstantValuesTest);
14-
if (namedArgumentsAnywhereAllowed) {
15-
defineReflectiveTests(ConstantValuesWithNamedArgumentsAnywhereTest);
16-
}
1714
defineReflectiveTests(HiddenConstantsTest);
1815
});
1916
}
@@ -132,15 +129,6 @@ const aTearOffUnnamedConstructorArgsTypedef = Ft<String>.new;
132129
expect(aTearOffUnnamedConstructorArgsTypedef.constantValue,
133130
equals('Ft&lt;String&gt;.new'));
134131
}
135-
}
136-
137-
@reflectiveTest
138-
class ConstantValuesWithNamedArgumentsAnywhereTest extends DartdocTestBase {
139-
@override
140-
String get libraryName => 'constant_values';
141-
142-
@override
143-
String get sdkConstraint => '>=2.17.0 <3.0.0';
144132

145133
void test_namedParametersInConstInvocationValue_specifiedLast() async {
146134
var library = await bootPackageWithLibrary('''

test/extension_types_test.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ void main() {
1818

1919
@reflectiveTest
2020
class ExtensionTypesTest extends DartdocTestBase {
21-
@override
22-
List<String> get experiments => ['inline-class'];
23-
2421
@override
2522
String get libraryName => 'extension_types';
2623

27-
@override
28-
String get sdkConstraint => '>=3.3.0 <4.0.0';
29-
3024
// TODO(srawlins): Test superinterfaces, references to members which exist via
3125
// `implements`, references to primary constructor.
3226

test/record_test.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ class RecordTest extends DartdocTestBase {
2121
@override
2222
String get libraryName => 'records';
2323

24-
@override
25-
String get sdkConstraint => '>=3.0.0 <4.0.0';
26-
2724
void test_noFields() async {
2825
var library = await bootPackageWithLibrary('''
2926
void f(() r) {}

test/typedef_test.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,9 @@ void main() {
2020

2121
@reflectiveTest
2222
class TypedefTest extends DartdocTestBase {
23-
@override
24-
List<String> get experiments => ['inline-class'];
25-
2623
@override
2724
String get libraryName => 'typedefs';
2825

29-
@override
30-
String get sdkConstraint => '>=3.3.0 <4.0.0';
31-
3226
void test_class_basic() async {
3327
var library = await bootPackageWithLibrary('''
3428
class C {}

tool/task.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ Rebuild them with "dart tool/task.dart build" and check the results in.
814814
bool get _analyzerInUseIsTarget {
815815
// TODO(srawlins): Add validation that this number falls within the
816816
// constraints of the analyzer package which are set in `pubspec.yaml`.
817-
const analyzerTarget = '6.5.2';
817+
const analyzerTarget = '6.8.0';
818818

819819
var lockfilePath = path.join(Directory.current.path, 'pubspec.lock');
820820
var lockfile = loadYaml(File(lockfilePath).readAsStringSync()) as YamlMap;

0 commit comments

Comments
 (0)