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

Side by Side Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 675113002: Support async/await in the dart2js frontend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update unittests Created 6 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 24 matching lines...) Expand all
35 }''', 35 }''',
36 'deprecated': 'const Object deprecated = const Deprecated("next release");', 36 'deprecated': 'const Object deprecated = const Deprecated("next release");',
37 'double': r''' 37 'double': r'''
38 abstract class double extends num { 38 abstract class double extends num {
39 static var NAN = 0; 39 static var NAN = 0;
40 static parse(s) {} 40 static parse(s) {}
41 }''', 41 }''',
42 'Function': 'class Function {}', 42 'Function': 'class Function {}',
43 'identical': 'bool identical(Object a, Object b) { return true; }', 43 'identical': 'bool identical(Object a, Object b) { return true; }',
44 'int': 'abstract class int extends num { }', 44 'int': 'abstract class int extends num { }',
45 'Iterable': 'abstract class Iterable {}',
45 'LinkedHashMap': r''' 46 'LinkedHashMap': r'''
46 class LinkedHashMap { 47 class LinkedHashMap {
47 factory LinkedHashMap._empty() => null; 48 factory LinkedHashMap._empty() => null;
48 factory LinkedHashMap._literal(elements) => null; 49 factory LinkedHashMap._literal(elements) => null;
49 }''', 50 }''',
50 'List': r''' 51 'List': r'''
51 class List<E> { 52 class List<E> {
52 var length; 53 var length;
53 List([length]); 54 List([length]);
54 List.filled(length, element); 55 List.filled(length, element);
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 }; 351 };
351 352
352 const Map<String, String> DEFAULT_ISOLATE_HELPER_LIBRARY = 353 const Map<String, String> DEFAULT_ISOLATE_HELPER_LIBRARY =
353 const <String, String>{ 354 const <String, String>{
354 'startRootIsolate': 'var startRootIsolate;', 355 'startRootIsolate': 'var startRootIsolate;',
355 '_currentIsolate': 'var _currentIsolate;', 356 '_currentIsolate': 'var _currentIsolate;',
356 '_callInIsolate': 'var _callInIsolate;', 357 '_callInIsolate': 'var _callInIsolate;',
357 '_WorkerBase': 'class _WorkerBase {}', 358 '_WorkerBase': 'class _WorkerBase {}',
358 }; 359 };
359 360
361 const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{
362 'Future': 'class Future<T> {}',
363 'Stream': 'class Stream<T> {}',
364 };
365
360 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 366 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
361 'Comment': 'class Comment {}', 367 'Comment': 'class Comment {}',
362 'MirrorSystem': 'class MirrorSystem {}', 368 'MirrorSystem': 'class MirrorSystem {}',
363 'MirrorsUsed': 'class MirrorsUsed {}', 369 'MirrorsUsed': 'class MirrorsUsed {}',
364 }; 370 };
OLDNEW
« tests/compiler/dart2js/frontend_checker.dart ('K') | « tests/compiler/dart2js/mock_compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698