Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: pkg/analyzer/test/enum_test.dart

Issue 784623004: Remove old instrumentation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.enums; 5 library test.enums;
6 6
7 import 'dart:mirrors'; 7 import 'dart:mirrors';
8 8
9 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
11 import 'package:analyzer/src/generated/error.dart'; 11 import 'package:analyzer/src/generated/error.dart';
12 import 'package:analyzer/src/generated/html.dart' as html; 12 import 'package:analyzer/src/generated/html.dart' as html;
13 import 'package:analyzer/src/generated/instrumentation.dart';
14 import 'package:analyzer/src/generated/java_core.dart'; 13 import 'package:analyzer/src/generated/java_core.dart';
15 import 'package:analyzer/src/generated/resolver.dart'; 14 import 'package:analyzer/src/generated/resolver.dart';
16 import 'package:analyzer/src/generated/source.dart'; 15 import 'package:analyzer/src/generated/source.dart';
17 import 'package:analyzer/src/generated/utilities_dart.dart'; 16 import 'package:analyzer/src/generated/utilities_dart.dart';
18 import 'package:unittest/unittest.dart'; 17 import 'package:unittest/unittest.dart';
19 18
20 import 'generated/ast_test.dart'; 19 import 'generated/ast_test.dart';
21 import 'reflective_tests.dart'; 20 import 'reflective_tests.dart';
22 21
23 void main() { 22 void main() {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ..check_getters() 80 ..check_getters()
82 ..check_explicit_values(); 81 ..check_explicit_values();
83 } 82 }
84 83
85 void test_INIT_STATE() { 84 void test_INIT_STATE() {
86 new EnumTester<INIT_STATE>() 85 new EnumTester<INIT_STATE>()
87 ..check_getters() 86 ..check_getters()
88 ..check_explicit_values(); 87 ..check_explicit_values();
89 } 88 }
90 89
91 void test_InstrumentationLevel() {
92 new EnumTester<InstrumentationLevel>()
93 ..check_getters()
94 ..check_explicit_values();
95 }
96
97 void test_Modifier() { 90 void test_Modifier() {
98 new EnumTester<Modifier>() 91 new EnumTester<Modifier>()
99 ..check_getters() 92 ..check_getters()
100 ..check_explicit_values(); 93 ..check_explicit_values();
101 } 94 }
102 95
103 void test_ParameterKind() { 96 void test_ParameterKind() {
104 new EnumTester<ParameterKind>() 97 new EnumTester<ParameterKind>()
105 ..check_getters() 98 ..check_getters()
106 ..check_explicit_values(); 99 ..check_explicit_values();
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 238
246 // Check that the set of ordinals runs from 0 to N-1, where N is the number 239 // Check that the set of ordinals runs from 0 to N-1, where N is the number
247 // of enumerated values. 240 // of enumerated values.
248 Set<int> expectedOrdinals = new Set<int>(); 241 Set<int> expectedOrdinals = new Set<int>();
249 for (int i = 0; i < numValues; i++) { 242 for (int i = 0; i < numValues; i++) {
250 expectedOrdinals.add(i); 243 expectedOrdinals.add(i);
251 } 244 }
252 expect(ordinals.keys.toSet(), equals(expectedOrdinals)); 245 expect(ordinals.keys.toSet(), equals(expectedOrdinals));
253 } 246 }
254 } 247 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698