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

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

Issue 1409803006: Rename apiimpl.Compiler to CompilerImpl. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix long lines Created 5 years, 1 month 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
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 import 'package:compiler/src/dart2js.dart' as entry; 9 import 'package:compiler/src/dart2js.dart' as entry;
10 import 'package:compiler/src/apiimpl.dart'; 10 import 'package:compiler/src/apiimpl.dart';
11 import 'package:compiler/compiler.dart'; 11 import 'package:compiler/compiler.dart';
12 12
13 import 'source_map_validator_helper.dart'; 13 import 'source_map_validator_helper.dart';
14 14
15 void main() { 15 void main() {
16 asyncTest(() => createTempDir().then((Directory tmpDir) { 16 asyncTest(() => createTempDir().then((Directory tmpDir) {
17 String file = 17 String file =
18 'tests/compiler/dart2js/source_map_deferred_validator_test_file.dart'; 18 'tests/compiler/dart2js/source_map_deferred_validator_test_file.dart';
19 print("Compiling $file"); 19 print("Compiling $file");
20 Future result = entry.internalMain( 20 Future result = entry.internalMain(
21 [file, 21 [file,
22 '-o${tmpDir.path}/out.js', 22 '-o${tmpDir.path}/out.js',
23 '--library-root=sdk']); 23 '--library-root=sdk']);
24 return result.then((CompilationResult result) { 24 return result.then((CompilationResult result) {
25 Compiler compiler = result.compiler; 25 CompilerImpl compiler = result.compiler;
26 Uri mainUri = new Uri.file('${tmpDir.path}/out.js', 26 Uri mainUri = new Uri.file('${tmpDir.path}/out.js',
27 windows: Platform.isWindows); 27 windows: Platform.isWindows);
28 Uri deferredUri = new Uri.file('${tmpDir.path}/out.js_1.part.js', 28 Uri deferredUri = new Uri.file('${tmpDir.path}/out.js_1.part.js',
29 windows: Platform.isWindows); 29 windows: Platform.isWindows);
30 validateSourceMap(mainUri, 30 validateSourceMap(mainUri,
31 mainUri: Uri.base.resolve(file), 31 mainUri: Uri.base.resolve(file),
32 mainPosition: const Position(7, 1), 32 mainPosition: const Position(7, 1),
33 compiler: compiler); 33 compiler: compiler);
34 validateSourceMap(deferredUri, 34 validateSourceMap(deferredUri,
35 compiler: compiler); 35 compiler: compiler);
36 36
37 print("Deleting '${tmpDir.path}'."); 37 print("Deleting '${tmpDir.path}'.");
38 tmpDir.deleteSync(recursive: true); 38 tmpDir.deleteSync(recursive: true);
39 }); 39 });
40 })); 40 }));
41 } 41 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/source_map_d2js_validity_test.dart ('k') | tests/compiler/dart2js/source_map_validator_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698