Index: dart/tests/utils/dummy_compiler_test.dart |
diff --git a/dart/tests/utils/dummy_compiler_test.dart b/dart/tests/utils/dummy_compiler_test.dart |
index af4c06a4ce68468b5ff7f9e6af15f1b58ed3de51..cd329ca5fe5e5f7d7b9ec9c54f69361d4a549774 100644 |
--- a/dart/tests/utils/dummy_compiler_test.dart |
+++ b/dart/tests/utils/dummy_compiler_test.dart |
@@ -4,6 +4,8 @@ |
// Smoke test of the dart2js compiler API. |
+library dummy_compiler; |
+ |
import '../../sdk/lib/_internal/compiler/compiler.dart'; |
import 'dart:uri'; |
@@ -14,7 +16,7 @@ Future<String> provider(Uri uri) { |
source = "main() {}"; |
} else if (uri.scheme == "lib") { |
if (uri.path.endsWith("/core.dart")) { |
- source = """#library('core'); |
+ source = """library core; |
class Object {} |
class Type {} |
class bool {} |
@@ -36,11 +38,19 @@ Future<String> provider(Uri uri) { |
source = ''; |
} else if (uri.path.endsWith('interceptors.dart')) { |
source = """class ObjectInterceptor {} |
+ class JSArray {} |
+ class JSString {} |
+ class JSFunction {} |
+ class JSInt {} |
+ class JSDouble {} |
+ class JSNumber {} |
+ class JSNull {} |
+ class JSBool {} |
var getInterceptor;"""; |
} else if (uri.path.endsWith('js_helper.dart')) { |
source = 'library jshelper; class JSInvocationMirror {}'; |
} else { |
- source = "#library('lib');"; |
+ source = "library lib;"; |
} |
} else { |
throw "unexpected URI $uri"; |