Skip to content

Commit 562273a

Browse files
authored
Move language version to 2.12 in the test_package (#2551)
1 parent f0adbfa commit 562273a

40 files changed

+100
-27
lines changed

test/end2end/model_test.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ void main() {
119119
expect(inferredTypeSet.modelType.name, equals('Set'));
120120
expect(
121121
inferredTypeSet.modelType.typeArguments.map((a) => a.name).toList(),
122-
equals(['num']));
123-
expect(inferredTypeSet.constantValue, equals('const {1, 2.5, 3}'));
122+
equals(['int']));
123+
expect(inferredTypeSet.constantValue, equals('const {1, 3, 5}'));
124124
expect(specifiedSet.modelType.name, equals('Set'));
125125
expect(specifiedSet.modelType.typeArguments.map((a) => a.name).toList(),
126126
equals(['int']));
@@ -3001,12 +3001,6 @@ String topLevelFunction(int param1, bool param2, Cool coolBeans,
30013001
withGenericSub.inheritedFields.where((p) => p.name == 'prop').length,
30023002
equals(1));
30033003
});
3004-
3005-
test('has abstract kind', () {
3006-
Field abstractField = UnusualProperties.allModelElements
3007-
.firstWhere((e) => e.name == 'abstractProperty');
3008-
expect(abstractField.fullkind, 'abstract property');
3009-
});
30103004
});
30113005

30123006
group('Accessor', () {

testing/test_package/bin/drill.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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+
// @dart=2.9
6+
57
// This is a sample "tool" used to test external tool integration into dartdoc.
68
// It has no practical purpose other than that.
79

testing/test_package/bin/print_macro.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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+
// @dart=2.9
6+
57
// This is a sample "tool" used to test external tool integration into dartdoc.
68
// It has no other purpose.
79

testing/test_package/bin/setup.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
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+
// @dart=2.9
6+
57
// This is a sample setup "tool" used to test external tool integration into
68
// dartdoc. It has no practical purpose other than that.
79

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
// DO NOT give this library a name
22

3+
// @dart=2.9
4+
35
String doesStuff() => 'hi';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
// DO NOT give this library a name
22

3+
// @dart=2.9
4+
35
String greeting() => "Hello";

testing/test_package/lib/base_class.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// @dart=2.9
2+
13
library base_class;
24

35
/// Abstract class Constraints

testing/test_package/lib/code_in_comments.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
/// - "value"
1111
/// - 3.14
1212
/// ```
13+
14+
// @dart=2.9
15+
1316
library code_in_comments;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
// @dart=2.9

testing/test_package/lib/css.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/// Testing that a library name doesn't conflict
22
/// with directories created by dartdoc.
33
/// {@category Other}
4+
5+
// @dart=2.9
6+
47
library css;
58

69
String theOnlyThingInTheLibrary = 'hello';

0 commit comments

Comments
 (0)