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

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

Issue 109853003: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 7 years 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 | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/parser_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 // 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 2795 matching lines...) Expand 10 before | Expand all | Expand 10 after
2806 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [ a]).type; 2806 FunctionType t = ElementFactory.functionElement6("t", null, <ClassElement> [ a]).type;
2807 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty pe; 2807 FunctionType s = ElementFactory.functionElement5("s", <ClassElement> [a]).ty pe;
2808 JUnitTestCase.assertTrue(t.isSubtypeOf(s)); 2808 JUnitTestCase.assertTrue(t.isSubtypeOf(s));
2809 JUnitTestCase.assertFalse(s.isSubtypeOf(t)); 2809 JUnitTestCase.assertFalse(s.isSubtypeOf(t));
2810 JUnitTestCase.assertTrue(t.isAssignableTo(s)); 2810 JUnitTestCase.assertTrue(t.isAssignableTo(s));
2811 JUnitTestCase.assertFalse(s.isAssignableTo(t)); 2811 JUnitTestCase.assertFalse(s.isAssignableTo(t));
2812 } 2812 }
2813 2813
2814 void test_isSubtypeOf_baseCase_classFunction() { 2814 void test_isSubtypeOf_baseCase_classFunction() {
2815 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []); 2815 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []);
2816 InterfaceTypeImpl functionType = new InterfaceTypeImpl_25(functionElement); 2816 InterfaceTypeImpl functionType = new InterfaceTypeImpl_26(functionElement);
2817 FunctionType f = ElementFactory.functionElement("f").type; 2817 FunctionType f = ElementFactory.functionElement("f").type;
2818 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType)); 2818 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType));
2819 } 2819 }
2820 2820
2821 void test_isSubtypeOf_baseCase_notFunctionType() { 2821 void test_isSubtypeOf_baseCase_notFunctionType() {
2822 FunctionType f = ElementFactory.functionElement("f").type; 2822 FunctionType f = ElementFactory.functionElement("f").type;
2823 InterfaceType t = ElementFactory.classElement2("C", []).type; 2823 InterfaceType t = ElementFactory.classElement2("C", []).type;
2824 JUnitTestCase.assertFalse(f.isSubtypeOf(t)); 2824 JUnitTestCase.assertFalse(f.isSubtypeOf(t));
2825 } 2825 }
2826 2826
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3305 runJUnitTest(__test, __test.test_substitute2_equal); 3305 runJUnitTest(__test, __test.test_substitute2_equal);
3306 }); 3306 });
3307 _ut.test('test_substitute2_notEqual', () { 3307 _ut.test('test_substitute2_notEqual', () {
3308 final __test = new FunctionTypeImplTest(); 3308 final __test = new FunctionTypeImplTest();
3309 runJUnitTest(__test, __test.test_substitute2_notEqual); 3309 runJUnitTest(__test, __test.test_substitute2_notEqual);
3310 }); 3310 });
3311 }); 3311 });
3312 } 3312 }
3313 } 3313 }
3314 3314
3315 class InterfaceTypeImpl_25 extends InterfaceTypeImpl { 3315 class InterfaceTypeImpl_26 extends InterfaceTypeImpl {
3316 InterfaceTypeImpl_25(ClassElement arg0) : super.con1(arg0); 3316 InterfaceTypeImpl_26(ClassElement arg0) : super.con1(arg0);
3317 3317
3318 bool get isDartCoreFunction => true; 3318 bool get isDartCoreFunction => true;
3319 } 3319 }
3320 3320
3321 main() { 3321 main() {
3322 ElementKindTest.dartSuite(); 3322 ElementKindTest.dartSuite();
3323 FunctionTypeImplTest.dartSuite(); 3323 FunctionTypeImplTest.dartSuite();
3324 InterfaceTypeImplTest.dartSuite(); 3324 InterfaceTypeImplTest.dartSuite();
3325 TypeParameterTypeImplTest.dartSuite(); 3325 TypeParameterTypeImplTest.dartSuite();
3326 VoidTypeImplTest.dartSuite(); 3326 VoidTypeImplTest.dartSuite();
3327 ClassElementImplTest.dartSuite(); 3327 ClassElementImplTest.dartSuite();
3328 ElementLocationImplTest.dartSuite(); 3328 ElementLocationImplTest.dartSuite();
3329 ElementImplTest.dartSuite(); 3329 ElementImplTest.dartSuite();
3330 LibraryElementImplTest.dartSuite(); 3330 LibraryElementImplTest.dartSuite();
3331 MultiplyDefinedElementImplTest.dartSuite(); 3331 MultiplyDefinedElementImplTest.dartSuite();
3332 } 3332 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/ast_test.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698