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

Unified Diff: tests/utils/dummy_compiler_test.dart

Issue 12045064: Revert "Add --analyze-only flag to dart2js" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
« no previous file with comments | « tests/utils/analyze_only_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/dummy_compiler_test.dart
diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
index b333c7a97361dafe018bb83fd1295453232efd83..5bd9dce662330073cd98e9048969cc882f845033 100644
--- a/tests/utils/dummy_compiler_test.dart
+++ b/tests/utils/dummy_compiler_test.dart
@@ -10,11 +10,11 @@ import 'dart:uri';
import '../../sdk/lib/_internal/compiler/compiler.dart';
-Future<String> provider(Uri uri, String mainSource) {
+Future<String> provider(Uri uri) {
Completer<String> completer = new Completer<String>();
String source;
if (uri.scheme == "main") {
- source = mainSource;
+ source = "main() {}";
} else if (uri.scheme == "lib") {
if (uri.path.endsWith("/core.dart")) {
source = """library core;
@@ -79,15 +79,11 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
}
main() {
- Future<String> localProvider(Uri uri) {
- return provider(uri, "main() {}");
- }
-
Future<String> result =
compile(new Uri.fromComponents(scheme: 'main'),
new Uri.fromComponents(scheme: 'lib', path: '/'),
new Uri.fromComponents(scheme: 'package', path: '/'),
- localProvider, handler);
+ provider, handler);
result.then((String code) {
if (code == null) {
throw 'Compilation failed';
« no previous file with comments | « tests/utils/analyze_only_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698