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

Side by Side Diff: tests/utils/dummy_compiler_test.dart

Issue 228293008: Redo "Construct literal maps using factory constructor." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: add constructors to mock libraries for dart2js tests Created 6 years, 8 months 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
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // VMOptions= 4 // VMOptions=
5 // VMOptions=--print-object-histogram 5 // VMOptions=--print-object-histogram
6 6
7 // Smoke test of the dart2js compiler API. 7 // Smoke test of the dart2js compiler API.
8 library dummy_compiler; 8 library dummy_compiler;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 21 matching lines...) Expand all
32 class double{} 32 class double{}
33 class String{} 33 class String{}
34 class Function{} 34 class Function{}
35 class List<E> {} 35 class List<E> {}
36 class Map {} 36 class Map {}
37 class Closure {} 37 class Closure {}
38 class BoundClosure {} 38 class BoundClosure {}
39 class Dynamic_ {} 39 class Dynamic_ {}
40 class Null {} 40 class Null {}
41 class StackTrace {} 41 class StackTrace {}
42 class LinkedHashMap {} 42 class LinkedHashMap {
43 factory LinkedHashMap._empty() => null;
44 factory LinkedHashMap._literal(elements) => null;
45 }
43 identical(a, b) => true; 46 identical(a, b) => true;
44 getRuntimeTypeInfo(o) {} 47 getRuntimeTypeInfo(o) {}
45 setRuntimeTypeInfo(o, i) {} 48 setRuntimeTypeInfo(o, i) {}
46 eqNull(a) {} 49 eqNull(a) {}
47 eqNullB(a) {} 50 eqNullB(a) {}
48 const proxy = 0;"""; 51 const proxy = 0;""";
49 } else if (uri.path.endsWith('_patch.dart')) { 52 } else if (uri.path.endsWith('_patch.dart')) {
50 source = ''; 53 source = '';
51 } else if (uri.path.endsWith('interceptors.dart')) { 54 } else if (uri.path.endsWith('interceptors.dart')) {
52 source = """ 55 source = """
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 new Uri(scheme: 'package', path: '/'), 121 new Uri(scheme: 'package', path: '/'),
119 provider, handler); 122 provider, handler);
120 result.then((String code) { 123 result.then((String code) {
121 if (code == null) { 124 if (code == null) {
122 throw 'Compilation failed'; 125 throw 'Compilation failed';
123 } 126 }
124 }, onError: (e) { 127 }, onError: (e) {
125 throw 'Compilation failed'; 128 throw 'Compilation failed';
126 }).then(asyncSuccess); 129 }).then(asyncSuccess);
127 } 130 }
OLDNEW
« no previous file with comments | « tests/language/language_dart2js.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698