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

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

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « pkg/analyzer/lib/src/util/utilities_timing.dart ('k') | pkg/analyzer/test/error_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ast.dart';
10 import 'package:analyzer/src/generated/element.dart'; 9 import 'package:analyzer/src/generated/element.dart';
11 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
12 import 'package:analyzer/src/generated/error.dart'; 11 import 'package:analyzer/src/generated/error.dart';
13 import 'package:analyzer/src/generated/html.dart' as html; 12 import 'package:analyzer/src/generated/html.dart' as html;
14 import 'package:analyzer/src/generated/instrumentation.dart'; 13 import 'package:analyzer/src/generated/instrumentation.dart';
15 import 'package:analyzer/src/generated/java_core.dart'; 14 import 'package:analyzer/src/generated/java_core.dart';
16 import 'package:analyzer/src/generated/resolver.dart'; 15 import 'package:analyzer/src/generated/resolver.dart';
17 import 'package:analyzer/src/generated/scanner.dart' as scanner; 16 import 'package:analyzer/src/generated/scanner.dart' as scanner;
18 import 'package:analyzer/src/generated/source.dart'; 17 import 'package:analyzer/src/generated/source.dart';
19 import 'package:analyzer/src/generated/utilities_dart.dart'; 18 import 'package:analyzer/src/generated/utilities_dart.dart';
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 264
266 // Check that the set of ordinals runs from 0 to N-1, where N is the number 265 // Check that the set of ordinals runs from 0 to N-1, where N is the number
267 // of enumerated values. 266 // of enumerated values.
268 Set<int> expectedOrdinals = new Set<int>(); 267 Set<int> expectedOrdinals = new Set<int>();
269 for (int i = 0; i < numValues; i++) { 268 for (int i = 0; i < numValues; i++) {
270 expectedOrdinals.add(i); 269 expectedOrdinals.add(i);
271 } 270 }
272 expect(ordinals.keys.toSet(), equals(expectedOrdinals)); 271 expect(ordinals.keys.toSet(), equals(expectedOrdinals));
273 } 272 }
274 } 273 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/util/utilities_timing.dart ('k') | pkg/analyzer/test/error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698