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

Side by Side Diff: tests/compiler/dart2js/serialization/analysis_test_helper.dart

Issue 2241033002: More bot fixes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 months 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.serialization_analysis_test; 5 library dart2js.serialization_analysis_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 import 'package:expect/expect.dart'; 9 import 'package:expect/expect.dart';
10 import 'package:compiler/src/commandline_options.dart'; 10 import 'package:compiler/src/commandline_options.dart';
11 import 'package:compiler/src/compiler.dart'; 11 import 'package:compiler/src/compiler.dart';
12 import 'package:compiler/src/filenames.dart'; 12 import 'package:compiler/src/filenames.dart';
13 import '../memory_compiler.dart'; 13 import '../memory_compiler.dart';
14 import 'helper.dart'; 14 import 'helper.dart';
15 import 'test_data.dart'; 15 import 'test_data.dart';
16 16
17 /// Number of tests that are not part of the automatic test grouping. 17 /// Number of tests that are not part of the automatic test grouping.
18 int SKIP_COUNT = 0; 18 int SKIP_COUNT = 0;
19 19
20 /// Number of groups that the [TESTS] are split into. 20 /// Number of groups that the [TESTS] are split into.
21 int SPLIT_COUNT = 4; 21 int SPLIT_COUNT = 5;
22 22
23 main(List<String> args) { 23 main(List<String> args) {
24 asyncTest(() async { 24 asyncTest(() async {
25 Arguments arguments = new Arguments.from(args); 25 Arguments arguments = new Arguments.from(args);
26 SerializedData serializedData = 26 SerializedData serializedData =
27 await serializeDartCore(arguments: arguments); 27 await serializeDartCore(arguments: arguments);
28 if (arguments.filename != null) { 28 if (arguments.filename != null) {
29 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename)); 29 Uri entryPoint = Uri.base.resolve(nativeToUriPath(arguments.filename));
30 await analyze(entryPoint, 30 await analyze(entryPoint,
31 resolutionInputs: serializedData.toUris(), 31 resolutionInputs: serializedData.toUris(),
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 diagnosticCollector.warnings.length, 63 diagnosticCollector.warnings.length,
64 "Unexpected warning count."); 64 "Unexpected warning count.");
65 Expect.equals(test.expectedHintCount, diagnosticCollector.hints.length, 65 Expect.equals(test.expectedHintCount, diagnosticCollector.hints.length,
66 "Unexpected hint count."); 66 "Unexpected hint count.");
67 Expect.equals(test.expectedInfoCount, diagnosticCollector.infos.length, 67 Expect.equals(test.expectedInfoCount, diagnosticCollector.infos.length,
68 "Unexpected info count."); 68 "Unexpected info count.");
69 } 69 }
70 }); 70 });
71 } 71 }
72 72
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/serialization/analysis5_test.dart ('k') | tests/compiler/dart2js/serialization/compilation5_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698