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

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

Issue 12079094: Take type arguments into account in interface type subtype check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased Created 7 years, 10 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/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/subtype_test.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 'dart:async'; 5 import 'dart:async';
6 import 'dart:uri'; 6 import 'dart:uri';
7 import 'parser_helper.dart'; 7 import 'parser_helper.dart';
8 import 'mock_compiler.dart'; 8 import 'mock_compiler.dart';
9 import '../../../sdk/lib/_internal/compiler/compiler.dart'; 9 import '../../../sdk/lib/_internal/compiler/compiler.dart';
10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg; 10 import '../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart' as l eg;
11 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac kend.dart'; 11 import '../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_bac kend.dart';
12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t'; 12 import '../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar t';
13 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart'; 13 import '../../../sdk/lib/_internal/compiler/implementation/tree/tree.dart';
14 14
15 const coreLib = r''' 15 const coreLib = r'''
16 library corelib; 16 library corelib;
17 class Object {} 17 class Object {}
18 interface bool {} 18 interface bool {}
19 interface num {} 19 interface num {}
20 interface int extends num {} 20 interface int extends num {}
21 interface double extends num {} 21 interface double extends num {}
22 abstract class String {} 22 abstract class String {}
23 interface Function {} 23 interface Function {}
24 interface List {} 24 interface List<T> {}
25 interface Map {} 25 interface Map<K,V> {}
26 interface Closure {} 26 interface Closure {}
27 interface Dynamic_ {} 27 interface Dynamic_ {}
28 interface Null {} 28 interface Null {}
29 interface TypeError {} 29 interface TypeError {}
30 class Type {} 30 class Type {}
31 class LinkedHashMap {} 31 class LinkedHashMap {}
32 class Math { 32 class Math {
33 static double parseDouble(String s) => 1.0; 33 static double parseDouble(String s) => 1.0;
34 } 34 }
35 print(x) {} 35 print(x) {}
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 testStaticAccessIoLib(); 755 testStaticAccessIoLib();
756 testLocalFunctionPlaceholder(); 756 testLocalFunctionPlaceholder();
757 testMinification(); 757 testMinification();
758 testClosureLocalsMinified(); 758 testClosureLocalsMinified();
759 testParametersMinified(); 759 testParametersMinified();
760 testDeclarationTypePlaceholders(); 760 testDeclarationTypePlaceholders();
761 testPlatformLibraryMemberNamesAreFixed(); 761 testPlatformLibraryMemberNamesAreFixed();
762 testConflictsWithCoreLib(); 762 testConflictsWithCoreLib();
763 testUnresolvedNamedConstructor(); 763 testUnresolvedNamedConstructor();
764 } 764 }
OLDNEW
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/subtype_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698