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

Side by Side Diff: pkg/analyzer/test/generated/element_test.dart

Issue 135803003: Translate index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 // This code was auto-generated, is not intended to be edited, and is subject to 1 // This code was auto-generated, is not intended to be edited, and is subject to
2 // significant change. Please see the README file for more information. 2 // significant change. Please see the README file for more information.
3 3
4 library engine.element_test; 4 library engine.element_test;
5 5
6 import 'package:analyzer/src/generated/java_core.dart'; 6 import 'package:analyzer/src/generated/java_core.dart';
7 import 'package:analyzer/src/generated/java_engine_io.dart'; 7 import 'package:analyzer/src/generated/java_engine_io.dart';
8 import 'package:analyzer/src/generated/java_junit.dart'; 8 import 'package:analyzer/src/generated/java_junit.dart';
9 import 'package:analyzer/src/generated/source_io.dart'; 9 import 'package:analyzer/src/generated/source_io.dart';
10 import 'package:analyzer/src/generated/utilities_dart.dart'; 10 import 'package:analyzer/src/generated/utilities_dart.dart';
(...skipping 2971 matching lines...) Expand 10 before | Expand all | Expand 10 after
2982 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [ a]).type; 2982 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [ a]).type;
2983 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty pe; 2983 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty pe;
2984 JUnitTestCase.assertTrue(t.isSubtypeOf(s)); 2984 JUnitTestCase.assertTrue(t.isSubtypeOf(s));
2985 JUnitTestCase.assertFalse(s.isSubtypeOf(t)); 2985 JUnitTestCase.assertFalse(s.isSubtypeOf(t));
2986 JUnitTestCase.assertTrue(t.isAssignableTo(s)); 2986 JUnitTestCase.assertTrue(t.isAssignableTo(s));
2987 JUnitTestCase.assertFalse(s.isAssignableTo(t)); 2987 JUnitTestCase.assertFalse(s.isAssignableTo(t));
2988 } 2988 }
2989 2989
2990 void test_isSubtypeOf_baseCase_classFunction() { 2990 void test_isSubtypeOf_baseCase_classFunction() {
2991 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []); 2991 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []);
2992 InterfaceTypeImpl functionType = new InterfaceTypeImpl_31(functionElement); 2992 InterfaceTypeImpl functionType = new InterfaceTypeImpl_34(functionElement);
2993 FunctionType f = ElementFactory.functionElement("f").type; 2993 FunctionType f = ElementFactory.functionElement("f").type;
2994 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType)); 2994 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType));
2995 } 2995 }
2996 2996
2997 void test_isSubtypeOf_baseCase_notFunctionType() { 2997 void test_isSubtypeOf_baseCase_notFunctionType() {
2998 FunctionType f = ElementFactory.functionElement("f").type; 2998 FunctionType f = ElementFactory.functionElement("f").type;
2999 InterfaceType t = ElementFactory.classElement2("C", []).type; 2999 InterfaceType t = ElementFactory.classElement2("C", []).type;
3000 JUnitTestCase.assertFalse(f.isSubtypeOf(t)); 3000 JUnitTestCase.assertFalse(f.isSubtypeOf(t));
3001 } 3001 }
3002 3002
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3481 runJUnitTest(__test, __test.test_substitute2_equal); 3481 runJUnitTest(__test, __test.test_substitute2_equal);
3482 }); 3482 });
3483 _ut.test('test_substitute2_notEqual', () { 3483 _ut.test('test_substitute2_notEqual', () {
3484 final __test = new FunctionTypeImplTest(); 3484 final __test = new FunctionTypeImplTest();
3485 runJUnitTest(__test, __test.test_substitute2_notEqual); 3485 runJUnitTest(__test, __test.test_substitute2_notEqual);
3486 }); 3486 });
3487 }); 3487 });
3488 } 3488 }
3489 } 3489 }
3490 3490
3491 class InterfaceTypeImpl_31 extends InterfaceTypeImpl { 3491 class InterfaceTypeImpl_34 extends InterfaceTypeImpl {
3492 InterfaceTypeImpl_31(ClassElement arg0) : super.con1(arg0); 3492 InterfaceTypeImpl_34(ClassElement arg0) : super.con1(arg0);
3493 3493
3494 bool get isDartCoreFunction => true; 3494 bool get isDartCoreFunction => true;
3495 } 3495 }
3496 3496
3497 main() { 3497 main() {
3498 ElementKindTest.dartSuite(); 3498 ElementKindTest.dartSuite();
3499 FunctionTypeImplTest.dartSuite(); 3499 FunctionTypeImplTest.dartSuite();
3500 InterfaceTypeImplTest.dartSuite(); 3500 InterfaceTypeImplTest.dartSuite();
3501 TypeParameterTypeImplTest.dartSuite(); 3501 TypeParameterTypeImplTest.dartSuite();
3502 VoidTypeImplTest.dartSuite(); 3502 VoidTypeImplTest.dartSuite();
3503 ClassElementImplTest.dartSuite(); 3503 ClassElementImplTest.dartSuite();
3504 ElementLocationImplTest.dartSuite(); 3504 ElementLocationImplTest.dartSuite();
3505 ElementImplTest.dartSuite(); 3505 ElementImplTest.dartSuite();
3506 LibraryElementImplTest.dartSuite(); 3506 LibraryElementImplTest.dartSuite();
3507 MultiplyDefinedElementImplTest.dartSuite(); 3507 MultiplyDefinedElementImplTest.dartSuite();
3508 } 3508 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698