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

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

Issue 1417323005: Rename Compiler.runCompiler -> runInternal. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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/compiler_helper.dart
diff --git a/tests/compiler/dart2js/compiler_helper.dart b/tests/compiler/dart2js/compiler_helper.dart
index 3d8194898de737d83f78f4037adfa043f94acaf0..612e124679882267974830c6896a2fd36c86acbd 100644
--- a/tests/compiler/dart2js/compiler_helper.dart
+++ b/tests/compiler/dart2js/compiler_helper.dart
@@ -146,8 +146,8 @@ Future<String> compileAll(String code,
expectedWarnings: expectedWarnings,
outputProvider: outputCollector);
compiler.diagnosticHandler = createHandler(compiler, code);
- return compiler.runCompiler(uri).then((_) {
- Expect.isFalse(compiler.compilationFailed,
+ return compiler.run(uri).then((compilationSucceded) {
+ Expect.isTrue(compilationSucceded,
'Unexpected compilation error(s): ${compiler.errors}');
return outputCollector.getOutput('', 'js');
});
@@ -161,7 +161,7 @@ Future compileAndCheck(String code,
MockCompiler compiler = compilerFor(code, uri,
expectedErrors: expectedErrors,
expectedWarnings: expectedWarnings);
- return compiler.runCompiler(uri).then((_) {
+ return compiler.run(uri).then((_) {
lego.Element element = findElement(compiler, name);
return check(compiler, element);
});
@@ -179,7 +179,7 @@ Future compileSources(Map<String, String> sources,
compiler.registerSource(base.resolve(path), code);
});
- return compiler.runCompiler(mainUri).then((_) {
+ return compiler.run(mainUri).then((_) {
return check(compiler);
});
}

Powered by Google App Engine
This is Rietveld 408576698