Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 } | |
| OLD | NEW |