| OLD | NEW |
| 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 import 'dart:async'; |
| 6 |
| 5 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
| 6 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 7 import 'memory_compiler.dart' show runCompiler, OutputCollector; | 9 import 'memory_compiler.dart' show runCompiler, OutputCollector; |
| 8 | 10 |
| 9 const MEMORY_SOURCE_FILES = const <String, String> { | 11 const MEMORY_SOURCE_FILES = const <String, String> { |
| 10 'main.dart': """ | 12 'main.dart': """ |
| 11 library main; | 13 library main; |
| 12 | 14 |
| 13 @MirrorsUsed(targets: const ['main', 'lib']) | 15 @MirrorsUsed(targets: const ['main', 'lib']) |
| 14 import 'dart:mirrors'; | 16 import 'dart:mirrors'; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 Expect.equals(preserveUris, jsOutput.contains("main.dart")); | 51 Expect.equals(preserveUris, jsOutput.contains("main.dart")); |
| 50 Expect.equals(preserveUris, jsOutput.contains("lib.dart")); | 52 Expect.equals(preserveUris, jsOutput.contains("lib.dart")); |
| 51 } | 53 } |
| 52 | 54 |
| 53 void main() { | 55 void main() { |
| 54 asyncTest(() async { | 56 asyncTest(() async { |
| 55 await runTest(true); | 57 await runTest(true); |
| 56 await runTest(false); | 58 await runTest(false); |
| 57 }); | 59 }); |
| 58 } | 60 } |
| OLD | NEW |