| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Library for creating mock versions of platform and internal libraries. | 5 // Library for creating mock versions of platform and internal libraries. |
| 6 | 6 |
| 7 library mock_libraries; | 7 library mock_libraries; |
| 8 | 8 |
| 9 String buildLibrarySource( | 9 String buildLibrarySource( |
| 10 Map<String, String> elementMap, | 10 Map<String, String> elementMap, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 import 'dart:_interceptors'; | 91 import 'dart:_interceptors'; |
| 92 import 'dart:_isolate_helper'; | 92 import 'dart:_isolate_helper'; |
| 93 import 'dart:async'; | 93 import 'dart:async'; |
| 94 '''; | 94 '''; |
| 95 | 95 |
| 96 const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{ | 96 const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{ |
| 97 'assertHelper': 'assertHelper(a) {}', | 97 'assertHelper': 'assertHelper(a) {}', |
| 98 'assertIsSubtype': 'assertIsSubtype(subtype, supertype, message) {}', | 98 'assertIsSubtype': 'assertIsSubtype(subtype, supertype, message) {}', |
| 99 'assertSubtype': 'assertSubtype(object, isField, checks, asField) {}', | 99 'assertSubtype': 'assertSubtype(object, isField, checks, asField) {}', |
| 100 'assertSubtypeOfRuntimeType': 'assertSubtypeOfRuntimeType(object, type) {}', | 100 'assertSubtypeOfRuntimeType': 'assertSubtypeOfRuntimeType(object, type) {}', |
| 101 'asyncHelper': 'asyncHelper(object, asyncBody, completer) {}', |
| 101 'boolConversionCheck': 'boolConversionCheck(x) {}', | 102 'boolConversionCheck': 'boolConversionCheck(x) {}', |
| 102 'boolTypeCast': 'boolTypeCast(value) {}', | 103 'boolTypeCast': 'boolTypeCast(value) {}', |
| 103 'boolTypeCheck': 'boolTypeCheck(value) {}', | 104 'boolTypeCheck': 'boolTypeCheck(value) {}', |
| 104 'checkSubtype': 'checkSubtype(object, isField, checks, asField) {}', | 105 'checkSubtype': 'checkSubtype(object, isField, checks, asField) {}', |
| 105 'checkSubtypeOfRuntimeType': 'checkSubtypeOfRuntimeType(o, t) {}', | 106 'checkSubtypeOfRuntimeType': 'checkSubtypeOfRuntimeType(o, t) {}', |
| 106 'BoundClosure': r'''abstract class BoundClosure extends Closure { | 107 'BoundClosure': r'''abstract class BoundClosure extends Closure { |
| 107 var self; | 108 var self; |
| 108 var target; | 109 var target; |
| 109 var receiver; | 110 var receiver; |
| 110 }''', | 111 }''', |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 'S': 'S() {}', | 203 'S': 'S() {}', |
| 203 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', | 204 'setRuntimeTypeInfo': 'setRuntimeTypeInfo(a, b) {}', |
| 204 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', | 205 'stringSuperNativeTypeCast': 'stringSuperNativeTypeCast(value) {}', |
| 205 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', | 206 'stringSuperNativeTypeCheck': 'stringSuperNativeTypeCheck(value) {}', |
| 206 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', | 207 'stringSuperTypeCast': 'stringSuperTypeCast(value) {}', |
| 207 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', | 208 'stringSuperTypeCheck': 'stringSuperTypeCheck(value) {}', |
| 208 'stringTypeCast': 'stringTypeCast(x) {}', | 209 'stringTypeCast': 'stringTypeCast(x) {}', |
| 209 'stringTypeCheck': 'stringTypeCheck(x) {}', | 210 'stringTypeCheck': 'stringTypeCheck(x) {}', |
| 210 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', | 211 'subtypeCast': 'subtypeCast(object, isField, checks, asField) {}', |
| 211 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', | 212 'subtypeOfRuntimeTypeCast': 'subtypeOfRuntimeTypeCast(object, type) {}', |
| 212 'thenHelper': | |
| 213 'thenHelper(object, helperCallback, completer, errorCallback) {}', | |
| 214 'throwAbstractClassInstantiationError': | 213 'throwAbstractClassInstantiationError': |
| 215 'throwAbstractClassInstantiationError(className) {}', | 214 'throwAbstractClassInstantiationError(className) {}', |
| 216 'throwCyclicInit': 'throwCyclicInit(staticName) {}', | 215 'throwCyclicInit': 'throwCyclicInit(staticName) {}', |
| 217 'throwExpression': 'throwExpression(e) {}', | 216 'throwExpression': 'throwExpression(e) {}', |
| 218 'throwNoSuchMethod': | 217 'throwNoSuchMethod': |
| 219 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', | 218 'throwNoSuchMethod(obj, name, arguments, expectedArgumentNames) {}', |
| 220 'throwRuntimeError': 'throwRuntimeError(message) {}', | 219 'throwRuntimeError': 'throwRuntimeError(message) {}', |
| 221 'throwTypeError': 'throwTypeError(message) {}', | 220 'throwTypeError': 'throwTypeError(message) {}', |
| 222 'TypeImpl': 'class TypeImpl {}', | 221 'TypeImpl': 'class TypeImpl {}', |
| 223 'TypeVariable': 'class TypeVariable {}', | 222 'TypeVariable': 'class TypeVariable {}', |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 'Stream': 'class Stream<T> {}', | 369 'Stream': 'class Stream<T> {}', |
| 371 'Completer': 'class Completer<T> {}', | 370 'Completer': 'class Completer<T> {}', |
| 372 'StreamIterator': 'class StreamIterator<T> {}', | 371 'StreamIterator': 'class StreamIterator<T> {}', |
| 373 }; | 372 }; |
| 374 | 373 |
| 375 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ | 374 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ |
| 376 'Comment': 'class Comment {}', | 375 'Comment': 'class Comment {}', |
| 377 'MirrorSystem': 'class MirrorSystem {}', | 376 'MirrorSystem': 'class MirrorSystem {}', |
| 378 'MirrorsUsed': 'class MirrorsUsed {}', | 377 'MirrorsUsed': 'class MirrorsUsed {}', |
| 379 }; | 378 }; |
| OLD | NEW |