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

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: Fix after rebase. 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
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1c0c0ecfc1ac457566853ea5a84eb5890d804304 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<String, String> core = <String, String>{'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);
}
« no previous file with comments | « tests/compiler/dart2js/mock_libraries.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698