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

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

Issue 10942028: Support class and typedef literals as expressions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two long lines. Created 8 years, 2 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
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('dart:uri'); 5 #import('dart:uri');
6 #import('parser_helper.dart'); 6 #import('parser_helper.dart');
7 #import('mock_compiler.dart'); 7 #import('mock_compiler.dart');
8 #import("../../../lib/compiler/compiler.dart"); 8 #import("../../../lib/compiler/compiler.dart");
9 #import("../../../lib/compiler/implementation/leg.dart", prefix:'leg'); 9 #import("../../../lib/compiler/implementation/leg.dart", prefix:'leg');
10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart"); 10 #import("../../../lib/compiler/implementation/dart_backend/dart_backend.dart");
11 #import("../../../lib/compiler/implementation/elements/elements.dart"); 11 #import("../../../lib/compiler/implementation/elements/elements.dart");
12 #import("../../../lib/compiler/implementation/tree/tree.dart"); 12 #import("../../../lib/compiler/implementation/tree/tree.dart");
13 13
14 const coreLib = r''' 14 const coreLib = r'''
15 #library('corelib'); 15 #library('corelib');
16 class Object {} 16 class Object {}
17 interface bool {} 17 interface bool {}
18 interface num {} 18 interface num {}
19 interface int extends num {} 19 interface int extends num {}
20 interface double extends num {} 20 interface double extends num {}
21 interface String {} 21 interface String {}
22 interface Function {} 22 interface Function {}
23 interface List {} 23 interface List {}
24 interface Map {} 24 interface Map {}
25 interface Closure {} 25 interface Closure {}
26 interface Dynamic_ {} 26 interface Dynamic_ {}
27 interface Null {} 27 interface Null {}
28 interface TypeError {} 28 interface TypeError {}
29 interface Type {}
29 class Math { 30 class Math {
30 static double parseDouble(String s) => 1.0; 31 static double parseDouble(String s) => 1.0;
31 } 32 }
32 '''; 33 ''';
33 34
34 const ioLib = r''' 35 const ioLib = r'''
35 #library('io'); 36 #library('io');
36 class Platform { 37 class Platform {
37 static int operatingSystem; 38 static int operatingSystem;
38 } 39 }
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 testInterfaceDefaultAnotherLib(); 807 testInterfaceDefaultAnotherLib();
807 testStaticAccessIoLib(); 808 testStaticAccessIoLib();
808 testLocalFunctionPlaceholder(); 809 testLocalFunctionPlaceholder();
809 testMinification(); 810 testMinification();
810 testClosureLocalsMinified(); 811 testClosureLocalsMinified();
811 testParametersMinified(); 812 testParametersMinified();
812 testTypeVariablesInDifferentLibraries(); 813 testTypeVariablesInDifferentLibraries();
813 testDeclarationTypePlaceholders(); 814 testDeclarationTypePlaceholders();
814 testPlatformLibraryMemberNamesAreFixed(); 815 testPlatformLibraryMemberNamesAreFixed();
815 } 816 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698