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

Unified Diff: tests/compiler/dart2js/source_map_d2js_validity_test.dart

Issue 832363002: Remove Compiler.assembledCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittest Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/source_map_d2js_validity_test.dart
diff --git a/tests/compiler/dart2js/source_map_d2js_validity_test.dart b/tests/compiler/dart2js/source_map_d2js_validity_test.dart
index 60de83f0e518ac8d81af940b88cc6893c8638ea8..7fe690c43a120ed050d288c484cca550a5612ae7 100644
--- a/tests/compiler/dart2js/source_map_d2js_validity_test.dart
+++ b/tests/compiler/dart2js/source_map_d2js_validity_test.dart
@@ -8,22 +8,20 @@ import 'dart:io';
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/dart2js.dart' as entry;
import 'package:compiler/src/apiimpl.dart';
+import 'package:compiler/compiler.dart';
import 'source_map_validator_helper.dart';
-import 'compiler_alt.dart' as alt;
void main() {
- entry.compileFunc = alt.compile;
-
asyncTest(() => createTempDir().then((Directory tmpDir) {
print(
'Compiling tests/compiler/dart2js/source_map_validator_test_file.dart');
- Future result = entry.internalMain(
+ Future<CompilationResult> result = entry.internalMain(
['tests/compiler/dart2js/source_map_validator_test_file.dart',
'-o${tmpDir.path}/out.js',
'--library-root=sdk']);
- return result.then((_) {
- Compiler compiler = alt.compiler;
+ return result.then((CompilationResult result) {
+ Compiler compiler = result.compiler;
Uri uri =
new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows);
validateSourceMap(uri, compiler);
@@ -33,3 +31,4 @@ void main() {
});
}));
}
+
« no previous file with comments | « tests/compiler/dart2js/output_collector.dart ('k') | tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698