| 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 // Test that the additional runtime type support is output to the right | 5 // Test that the additional runtime type support is output to the right |
| 6 // Files when using deferred loading. | 6 // Files when using deferred loading. |
| 7 | 7 |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import 'package:compiler/src/dart2jslib.dart'; | 9 import 'package:compiler/src/compiler.dart'; |
| 10 import 'package:expect/expect.dart'; | 10 import 'package:expect/expect.dart'; |
| 11 import 'memory_compiler.dart'; | 11 import 'memory_compiler.dart'; |
| 12 import 'output_collector.dart'; | 12 import 'output_collector.dart'; |
| 13 | 13 |
| 14 void main() { | 14 void main() { |
| 15 OutputCollector collector = new OutputCollector(); | 15 OutputCollector collector = new OutputCollector(); |
| 16 asyncTest(() async { | 16 asyncTest(() async { |
| 17 CompilationResult result = await runCompiler( | 17 CompilationResult result = await runCompiler( |
| 18 memorySourceFiles: MEMORY_SOURCE_FILES, | 18 memorySourceFiles: MEMORY_SOURCE_FILES, |
| 19 outputProvider: collector); | 19 outputProvider: collector); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 print(lib1.globalVar); | 56 print(lib1.globalVar); |
| 57 lib1.globalVar = "foobar"; | 57 lib1.globalVar = "foobar"; |
| 58 print(lib1.globalVar); | 58 print(lib1.globalVar); |
| 59 }); | 59 }); |
| 60 } | 60 } |
| 61 """, "lib1.dart": """ | 61 """, "lib1.dart": """ |
| 62 import "main.dart" as main; | 62 import "main.dart" as main; |
| 63 final finalVar = "string1"; | 63 final finalVar = "string1"; |
| 64 var globalVar = "string2"; | 64 var globalVar = "string2"; |
| 65 """}; | 65 """}; |
| OLD | NEW |