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

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

Issue 17932005: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Disable resolver tests Created 7 years, 5 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 library engine.element_test; 3 library engine.element_test;
4 import 'dart:collection'; 4 import 'dart:collection';
5 import 'dart:io'; 5 import 'dart:io';
6 import 'package:analyzer_experimental/src/generated/java_core.dart'; 6 import 'package:analyzer_experimental/src/generated/java_core.dart';
7 import 'package:analyzer_experimental/src/generated/java_engine.dart'; 7 import 'package:analyzer_experimental/src/generated/java_engine.dart';
8 import 'package:analyzer_experimental/src/generated/java_engine_io.dart'; 8 import 'package:analyzer_experimental/src/generated/java_engine_io.dart';
9 import 'package:analyzer_experimental/src/generated/java_junit.dart'; 9 import 'package:analyzer_experimental/src/generated/java_junit.dart';
10 import 'package:analyzer_experimental/src/generated/source_io.dart'; 10 import 'package:analyzer_experimental/src/generated/source_io.dart';
(...skipping 2218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2229 void test_hashCode_element() { 2229 void test_hashCode_element() {
2230 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co n1(ASTFactory.identifier3("f"))); 2230 FunctionTypeImpl type = new FunctionTypeImpl.con1(new FunctionElementImpl.co n1(ASTFactory.identifier3("f")));
2231 type.hashCode; 2231 type.hashCode;
2232 } 2232 }
2233 void test_hashCode_noElement() { 2233 void test_hashCode_noElement() {
2234 FunctionTypeImpl type = new FunctionTypeImpl.con1((null as ExecutableElement )); 2234 FunctionTypeImpl type = new FunctionTypeImpl.con1((null as ExecutableElement ));
2235 type.hashCode; 2235 type.hashCode;
2236 } 2236 }
2237 void test_isSubtypeOf_baseCase_classFunction() { 2237 void test_isSubtypeOf_baseCase_classFunction() {
2238 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []); 2238 ClassElementImpl functionElement = ElementFactory.classElement2("Function", []);
2239 InterfaceTypeImpl functionType = new InterfaceTypeImpl_18(functionElement); 2239 InterfaceTypeImpl functionType = new InterfaceTypeImpl_19(functionElement);
2240 FunctionType f = ElementFactory.functionElement("f").type; 2240 FunctionType f = ElementFactory.functionElement("f").type;
2241 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType)); 2241 JUnitTestCase.assertTrue(f.isSubtypeOf(functionType));
2242 } 2242 }
2243 void test_isSubtypeOf_baseCase_notFunctionType() { 2243 void test_isSubtypeOf_baseCase_notFunctionType() {
2244 FunctionType f = ElementFactory.functionElement("f").type; 2244 FunctionType f = ElementFactory.functionElement("f").type;
2245 InterfaceType t = ElementFactory.classElement2("C", []).type; 2245 InterfaceType t = ElementFactory.classElement2("C", []).type;
2246 JUnitTestCase.assertFalse(f.isSubtypeOf(t)); 2246 JUnitTestCase.assertFalse(f.isSubtypeOf(t));
2247 } 2247 }
2248 void test_isSubtypeOf_baseCase_null() { 2248 void test_isSubtypeOf_baseCase_null() {
2249 FunctionType f = ElementFactory.functionElement("f").type; 2249 FunctionType f = ElementFactory.functionElement("f").type;
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
2723 final __test = new FunctionTypeImplTest(); 2723 final __test = new FunctionTypeImplTest();
2724 runJUnitTest(__test, __test.test_substitute2_equal); 2724 runJUnitTest(__test, __test.test_substitute2_equal);
2725 }); 2725 });
2726 _ut.test('test_substitute2_notEqual', () { 2726 _ut.test('test_substitute2_notEqual', () {
2727 final __test = new FunctionTypeImplTest(); 2727 final __test = new FunctionTypeImplTest();
2728 runJUnitTest(__test, __test.test_substitute2_notEqual); 2728 runJUnitTest(__test, __test.test_substitute2_notEqual);
2729 }); 2729 });
2730 }); 2730 });
2731 } 2731 }
2732 } 2732 }
2733 class InterfaceTypeImpl_18 extends InterfaceTypeImpl { 2733 class InterfaceTypeImpl_19 extends InterfaceTypeImpl {
2734 InterfaceTypeImpl_18(ClassElement arg0) : super.con1(arg0); 2734 InterfaceTypeImpl_19(ClassElement arg0) : super.con1(arg0);
2735 bool get isDartCoreFunction => true; 2735 bool get isDartCoreFunction => true;
2736 } 2736 }
2737 main() { 2737 main() {
2738 ElementKindTest.dartSuite(); 2738 ElementKindTest.dartSuite();
2739 FunctionTypeImplTest.dartSuite(); 2739 FunctionTypeImplTest.dartSuite();
2740 InterfaceTypeImplTest.dartSuite(); 2740 InterfaceTypeImplTest.dartSuite();
2741 TypeVariableTypeImplTest.dartSuite(); 2741 TypeVariableTypeImplTest.dartSuite();
2742 ClassElementImplTest.dartSuite(); 2742 ClassElementImplTest.dartSuite();
2743 ElementLocationImplTest.dartSuite(); 2743 ElementLocationImplTest.dartSuite();
2744 ElementImplTest.dartSuite(); 2744 ElementImplTest.dartSuite();
2745 LibraryElementImplTest.dartSuite(); 2745 LibraryElementImplTest.dartSuite();
2746 } 2746 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/test/generated/ast_test.dart ('k') | pkg/analyzer_experimental/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698