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

Unified Diff: tests/compiler/dart2js/backend_dart/end2end_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/backend_dart/end2end_test.dart
diff --git a/tests/compiler/dart2js/backend_dart/end2end_test.dart b/tests/compiler/dart2js/backend_dart/end2end_test.dart
index f5f778f43ad175527acf07b456183c69a9ae51cc..5f70f16caa3708b05bc2f5ae367947ac8df95db1 100644
--- a/tests/compiler/dart2js/backend_dart/end2end_test.dart
+++ b/tests/compiler/dart2js/backend_dart/end2end_test.dart
@@ -14,15 +14,18 @@ import '../../../../pkg/analyzer2dart/test/test_helper.dart' hide TestSpec;
import '../../../../pkg/analyzer2dart/test/end2end_data.dart';
import 'test_helper.dart';
+import '../output_collector.dart';
main() {
performTests(TEST_DATA, asyncTester, (TestSpec result) {
- asyncTest(() => compilerFor(result.input).then((Compiler compiler) {
+ OutputCollector outputCollector = new OutputCollector();
+ asyncTest(() => compilerFor(result.input, outputProvider: outputCollector)
+ .then((Compiler compiler) {
String expectedOutput = result.output.trim();
compiler.phase = Compiler.PHASE_COMPILING;
DartBackend backend = compiler.backend;
backend.assembleProgram();
- String output = compiler.assembledCode.trim();
+ String output = outputCollector.getOutput('', 'dart').trim();
Expect.equals(expectedOutput, output,
'\nInput:\n${result.input}\n'
'Expected:\n$expectedOutput\n'
« no previous file with comments | « tests/compiler/dart2js/backend_dart/dart_new_backend_test.dart ('k') | tests/compiler/dart2js/backend_dart/test_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698