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

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

Issue 341923005: Update imports to use package:compiler and package:try. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37512. Created 6 years, 6 months 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 | Annotate | Revision Log
OLDNEW
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'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 7
8 import 'package:async_helper/async_helper.dart'; 8 import 'package:async_helper/async_helper.dart';
9 9
10 import 'source_map_validator_helper.dart'; 10 import 'source_map_validator_helper.dart';
11 import '../../../sdk/lib/_internal/compiler/implementation/dart2js.dart' as entr y; 11 import 'package:compiler/implementation/dart2js.dart' as entry;
12 12
13 void main() { 13 void main() {
14 asyncTest(() => createTempDir().then((Directory tmpDir) { 14 asyncTest(() => createTempDir().then((Directory tmpDir) {
15 print('Compiling tests/compiler/dart2js/exit_code_helper.dart'); 15 print('Compiling tests/compiler/dart2js/exit_code_helper.dart');
16 Future result = 16 Future result =
17 entry.internalMain(['tests/compiler/dart2js/exit_code_helper.dart', 17 entry.internalMain(['tests/compiler/dart2js/exit_code_helper.dart',
18 '-o${tmpDir.path}/out.js', 18 '-o${tmpDir.path}/out.js',
19 '--library-root=sdk']); 19 '--library-root=sdk']);
20 return result.then((_) { 20 return result.then((_) {
21 Uri uri = 21 Uri uri =
22 new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows); 22 new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows);
23 validateSourceMap(uri); 23 validateSourceMap(uri);
24 24
25 print("Deleting '${tmpDir.path}'."); 25 print("Deleting '${tmpDir.path}'.");
26 tmpDir.deleteSync(recursive: true); 26 tmpDir.deleteSync(recursive: true);
27 }); 27 });
28 })); 28 }));
29 } 29 }
OLDNEW
« no previous file with comments | « dart/tests/compiler/dart2js/simple_inferrer_try_catch_test.dart ('k') | dart/tests/compiler/dart2js/source_mapping_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698