Index: tests/compiler/dart2js/mock_libraries.dart |
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart |
index 3e64f109662f468d533c7fa9ac943c6bf52f2072..4ceb37586757212d7bd8ae34b8f1a72bb9d2be37 100644 |
--- a/tests/compiler/dart2js/mock_libraries.dart |
+++ b/tests/compiler/dart2js/mock_libraries.dart |
@@ -15,8 +15,7 @@ _interceptors:_internal/js_runtime/lib/interceptors.dart |
_isolate_helper:_internal/js_runtime/lib/isolate_helper.dart |
"""; |
-String buildLibrarySource( |
- Map<String, String> elementMap, |
+String buildLibrarySource(Map<String, String> elementMap, |
[Map<String, String> additionalElementMap = const <String, String>{}]) { |
Map<String, String> map = new Map<String, String>.from(elementMap); |
if (additionalElementMap != null) { |
@@ -37,7 +36,7 @@ const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{ |
DateTime(year); |
DateTime.utc(year); |
}''', |
- 'Deprecated': r''' |
+ 'Deprecated': r''' |
class Deprecated extends Object { |
final String expires; |
const Deprecated(this.expires); |
@@ -138,8 +137,7 @@ const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{ |
var target; |
var receiver; |
}''', |
- 'buildFunctionType': |
- r'''buildFunctionType(returnType, parameterTypes, |
+ 'buildFunctionType': r'''buildFunctionType(returnType, parameterTypes, |
optionalParameterTypes) { |
return new RuntimeFunctionType(); |
}''', |
@@ -264,13 +262,12 @@ const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{ |
'wrapException': 'wrapException(x) { return x; }', |
'badMain': 'badMain() { throw "bad main"; }', |
'missingMain': 'missingMain() { throw "missing main"; }', |
- 'mainHasTooManyParameters': |
- 'mainHasTooManyParameters() ' |
+ 'mainHasTooManyParameters': 'mainHasTooManyParameters() ' |
'{ throw "main has too many parameters"; }', |
}; |
-const Map<String, String> DEFAULT_FOREIGN_HELPER_LIBRARY |
- = const <String, String>{ |
+const Map<String, String> DEFAULT_FOREIGN_HELPER_LIBRARY = |
+ const <String, String>{ |
'JS': r''' |
dynamic JS(String typeDescription, String codeTemplate, |
[var arg0, var arg1, var arg2, var arg3, var arg4, var arg5, var arg6, |
@@ -278,8 +275,7 @@ const Map<String, String> DEFAULT_FOREIGN_HELPER_LIBRARY |
}; |
const Map<String, String> DEFAULT_INTERCEPTORS_LIBRARY = const <String, String>{ |
- 'findIndexForNativeSubclassType': |
- 'findIndexForNativeSubclassType(type) {}', |
+ 'findIndexForNativeSubclassType': 'findIndexForNativeSubclassType(type) {}', |
'getDispatchProperty': 'getDispatchProperty(o) {}', |
'getInterceptor': 'getInterceptor(x) {}', |
'getNativeInterceptor': 'getNativeInterceptor(x) {}', |
@@ -327,11 +323,10 @@ const Map<String, String> DEFAULT_INTERCEPTORS_LIBRARY = const <String, String>{ |
}''', |
'JSMutableArray': |
'class JSMutableArray extends JSArray implements JSMutableIndexable {}', |
- 'JSUnmodifiableArray': |
- 'class JSUnmodifiableArray extends JSArray {}', |
+ 'JSUnmodifiableArray': 'class JSUnmodifiableArray extends JSArray {}', |
'JSMutableIndexable': |
'abstract class JSMutableIndexable extends JSIndexable {}', |
- 'JSPositiveInt': 'class JSPositiveInt extends JSInt {}', |
+ 'JSPositiveInt': 'class JSPositiveInt extends JSInt {}', |
'JSNull': r''' |
class JSNull extends Interceptor { |
bool operator==(other) => identical(null, other); |
@@ -409,8 +404,7 @@ const Map<String, String> DEFAULT_ISOLATE_HELPER_LIBRARY = |
const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{ |
'DeferredLibrary': 'class DeferredLibrary {}', |
- 'Future': |
- ''' |
+ 'Future': ''' |
class Future<T> { |
Future.value([value]); |
} |