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

Side by Side Diff: tests/compiler/dart2js/all_native_test.dart

Issue 2576663003: Log only valid occurences of 'All native types used ...'. (Closed)
Patch Set: dartfmt Created 4 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
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | tests/compiler/dart2js/diagnostic_helper.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
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.
4
5 import 'package:async_helper/async_helper.dart';
6 import 'package:compiler/src/common/names.dart';
7 import 'package:compiler/src/commandline_options.dart';
8 import 'package:expect/expect.dart';
9 import 'memory_compiler.dart';
10
11 main() {
12 asyncTest(() async {
13 DiagnosticCollector collector = new DiagnosticCollector();
14 await runCompiler(
15 entryPoint: Uris.dart_html,
16 diagnosticHandler: collector,
17 options: [Flags.analyzeAll, Flags.verbose]);
18 int allNativeUsedCount =
19 collector.verboseInfos.where((CollectedMessage message) {
20 return message.text.startsWith('All native types marked as used due to ');
21 }).length;
22 Expect.equals(
23 1, allNativeUsedCount, "Unexpected message count: $allNativeUsedCount");
Johnni Winther 2016/12/14 09:00:10 Count before the change was 7441!
24 });
25 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/native/enqueue.dart ('k') | tests/compiler/dart2js/diagnostic_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698