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

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

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix dart2js, update tests, expectations. Created 8 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/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index 0a26a094d6569d97dc3205c59351367625be712e..50bb4311ffb010d1fb43ae410d08c553445ae933 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -42,6 +42,7 @@ const String DEFAULT_HELPERLIB = r'''
stringTypeCheck(x) {}
boolConversionCheck(x) {}
abstract class JavaScriptIndexingBehavior {}
+ class JSInvocationMirror {}
S() {}
assertHelper(a){}''';
@@ -92,6 +93,7 @@ class MockCompiler extends Compiler {
// We need to set the assert method to avoid calls with a 'null'
// target being interpreted as a call to assert.
jsHelperLibrary = createLibrary("helper", helperSource);
+ importHelperLibrary(coreLibrary);
assertMethod = jsHelperLibrary.find(buildSourceString('assert'));
interceptorsLibrary = createLibrary("interceptors", interceptorsSource);

Powered by Google App Engine
This is Rietveld 408576698