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

Side by Side Diff: tests/compiler/dart2js/dart_backend_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 | « sdk/lib/_internal/lib/js_helper.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | 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 4
5 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import 'dart:async'; 6 import 'dart:async';
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import 'parser_helper.dart'; 8 import 'parser_helper.dart';
9 import 'mock_compiler.dart'; 9 import 'mock_compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart';
(...skipping 15 matching lines...) Expand all
26 class Function {} 26 class Function {}
27 class List<T> {} 27 class List<T> {}
28 class Map<K,V> {} 28 class Map<K,V> {}
29 class BoundClosure {} 29 class BoundClosure {}
30 class Closure {} 30 class Closure {}
31 class Dynamic_ {} 31 class Dynamic_ {}
32 class Null {} 32 class Null {}
33 class TypeError {} 33 class TypeError {}
34 class Type {} 34 class Type {}
35 class StackTrace {} 35 class StackTrace {}
36 class LinkedHashMap {} 36 class LinkedHashMap {
37 factory LinkedHashMap._empty() => null;
38 factory LinkedHashMap._literal(elements) => null;
39 }
37 class Math { 40 class Math {
38 static double parseDouble(String s) => 1.0; 41 static double parseDouble(String s) => 1.0;
39 } 42 }
40 print(x) {} 43 print(x) {}
41 identical(a, b) => true; 44 identical(a, b) => true;
42 const proxy = 0; 45 const proxy = 0;
43 '''; 46 ''';
44 47
45 const ioLib = r''' 48 const ioLib = r'''
46 library io; 49 library io;
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 testStaticAccessIoLib(); 734 testStaticAccessIoLib();
732 testLocalFunctionPlaceholder(); 735 testLocalFunctionPlaceholder();
733 testMinification(); 736 testMinification();
734 testClosureLocalsMinified(); 737 testClosureLocalsMinified();
735 testParametersMinified(); 738 testParametersMinified();
736 testDeclarationTypePlaceholders(); 739 testDeclarationTypePlaceholders();
737 testPlatformLibraryMemberNamesAreFixed(); 740 testPlatformLibraryMemberNamesAreFixed();
738 testConflictsWithCoreLib(); 741 testConflictsWithCoreLib();
739 testUnresolvedNamedConstructor(); 742 testUnresolvedNamedConstructor();
740 } 743 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/lib/js_helper.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698