Index: tests/compiler/dart2js/mock_libraries.dart |
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart |
index 5de30cbb14c140b79eb4da8dc20a88828afe6988..3db096bf059fc6447b6365c36cddb66dfbc49284 100644 |
--- a/tests/compiler/dart2js/mock_libraries.dart |
+++ b/tests/compiler/dart2js/mock_libraries.dart |
@@ -107,6 +107,8 @@ import 'dart:async'; |
'''; |
const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{ |
+ 'assertTest': 'assertTest(a) {}', |
+ 'assertThrow': 'assertThrow(a) {}', |
'assertHelper': 'assertHelper(a) {}', |
'assertIsSubtype': 'assertIsSubtype(subtype, supertype, message) {}', |
'assertSubtype': 'assertSubtype(object, isField, checks, asField) {}', |
@@ -368,8 +370,8 @@ const Map<String, String> DEFAULT_INTERCEPTORS_LIBRARY = const <String, String>{ |
}''', |
'JSString': r''' |
class JSString extends Interceptor implements String, JSIndexable { |
- var split; |
- var length; |
+ split(pattern) => []; |
+ int get length => 42; |
operator[](index) {} |
toString() {} |
operator+(other) => this; |