| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // BSD-style license that can be found in the LICENSE file. | |
| 4 | |
| 5 import 'dart:async'; | |
| 6 import 'dart:io'; | |
| 7 import 'package:async_helper/async_helper.dart'; | |
| 8 | |
| 9 import 'source_map_consistency_helper.dart'; | |
| 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2js.dart' as entr
y; | |
| 11 | |
| 12 void main() { | |
| 13 asyncTest(() => createTempDir().then((Directory tmpDir) { | |
| 14 print('Compiling tests/compiler/dart2js/exit_code_helper.dart'); | |
| 15 Future result = | |
| 16 entry.internalMain(['tests/compiler/dart2js/exit_code_helper.dart', | |
| 17 '-o${tmpDir.path}/out.js', | |
| 18 '--library-root=sdk']); | |
| 19 return result.then((_) { | |
| 20 Uri uri = | |
| 21 new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows); | |
| 22 checkConsistency(uri); | |
| 23 | |
| 24 print("Deleting '${tmpDir.path}'."); | |
| 25 tmpDir.deleteSync(recursive: true); | |
| 26 }); | |
| 27 })); | |
| 28 } | |
| OLD | NEW |