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

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

Issue 362243003: Generate mock libraries and assert that helpers are non-null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/patch_test.dart
diff --git a/tests/compiler/dart2js/patch_test.dart b/tests/compiler/dart2js/patch_test.dart
index a0166139b5b5828ce8882a9e4002639fbbfe6993..2abefef1a1cd237c720ac291e0bc968c6ba15963 100644
--- a/tests/compiler/dart2js/patch_test.dart
+++ b/tests/compiler/dart2js/patch_test.dart
@@ -10,16 +10,17 @@ import "package:compiler/implementation/elements/elements.dart";
import "package:compiler/implementation/tree/tree.dart";
import "package:compiler/implementation/util/util.dart";
import "mock_compiler.dart";
+import "mock_libraries.dart";
import "parser_helper.dart";
Future<Compiler> applyPatch(String script, String patch,
{bool analyzeAll: false, bool analyzeOnly: false}) {
- String core = "$DEFAULT_CORELIB\n$script";
+ Map core = {'script': script};
MockCompiler compiler = new MockCompiler.internal(coreSource: core,
analyzeAll: analyzeAll,
analyzeOnly: analyzeOnly);
var uri = Uri.parse("patch:core");
- compiler.registerSource(uri, "$PATCH_CORE_SOURCE\n$patch");
+ compiler.registerSource(uri, "$DEFAULT_PATCH_CORE_SOURCE\n$patch");
return compiler.init().then((_) => compiler);
}

Powered by Google App Engine
This is Rietveld 408576698