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

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

Issue 26096002: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 // 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 'package:analyzer_experimental/src/generated/java_core.dart'; 4 import 'package:analyzer_experimental/src/generated/java_core.dart';
5 import 'package:analyzer_experimental/src/generated/java_engine_io.dart'; 5 import 'package:analyzer_experimental/src/generated/java_engine_io.dart';
6 import 'package:analyzer_experimental/src/generated/java_junit.dart'; 6 import 'package:analyzer_experimental/src/generated/java_junit.dart';
7 import 'package:analyzer_experimental/src/generated/source_io.dart'; 7 import 'package:analyzer_experimental/src/generated/source_io.dart';
8 import 'package:analyzer_experimental/src/generated/utilities_dart.dart'; 8 import 'package:analyzer_experimental/src/generated/utilities_dart.dart';
9 import 'package:analyzer_experimental/src/generated/ast.dart'; 9 import 'package:analyzer_experimental/src/generated/ast.dart';
10 import 'package:analyzer_experimental/src/generated/element.dart'; 10 import 'package:analyzer_experimental/src/generated/element.dart';
(...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after
1251 EngineTestCase.assertLength(1, resultArguments); 1251 EngineTestCase.assertLength(1, resultArguments);
1252 JUnitTestCase.assertEquals(argumentType, resultArguments[0]); 1252 JUnitTestCase.assertEquals(argumentType, resultArguments[0]);
1253 } 1253 }
1254 void test_substitute_exception() { 1254 void test_substitute_exception() {
1255 try { 1255 try {
1256 ClassElementImpl classA = ElementFactory.classElement2("A", []); 1256 ClassElementImpl classA = ElementFactory.classElement2("A", []);
1257 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); 1257 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA);
1258 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; 1258 InterfaceType argumentType = ElementFactory.classElement2("B", []).type;
1259 type.substitute2(<Type2> [argumentType], <Type2> []); 1259 type.substitute2(<Type2> [argumentType], <Type2> []);
1260 JUnitTestCase.fail("Expected to encounter exception, argument and paramete r type array lengths not equal."); 1260 JUnitTestCase.fail("Expected to encounter exception, argument and paramete r type array lengths not equal.");
1261 } catch (e) { 1261 } on JavaException catch (e) {
1262 } 1262 }
1263 } 1263 }
1264 void test_substitute_notEqual() { 1264 void test_substitute_notEqual() {
1265 ClassElementImpl classA = ElementFactory.classElement2("A", []); 1265 ClassElementImpl classA = ElementFactory.classElement2("A", []);
1266 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl(AST Factory.identifier3("E")); 1266 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl(AST Factory.identifier3("E"));
1267 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); 1267 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA);
1268 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement ); 1268 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement );
1269 type.typeArguments = <Type2> [parameter]; 1269 type.typeArguments = <Type2> [parameter];
1270 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; 1270 InterfaceType argumentType = ElementFactory.classElement2("B", []).type;
1271 TypeParameterTypeImpl parameterType = new TypeParameterTypeImpl(new TypePara meterElementImpl(ASTFactory.identifier3("F"))); 1271 TypeParameterTypeImpl parameterType = new TypeParameterTypeImpl(new TypePara meterElementImpl(ASTFactory.identifier3("F")));
(...skipping 1581 matching lines...) Expand 10 before | Expand all | Expand 10 after
2853 main() { 2853 main() {
2854 ElementKindTest.dartSuite(); 2854 ElementKindTest.dartSuite();
2855 FunctionTypeImplTest.dartSuite(); 2855 FunctionTypeImplTest.dartSuite();
2856 InterfaceTypeImplTest.dartSuite(); 2856 InterfaceTypeImplTest.dartSuite();
2857 TypeParameterTypeImplTest.dartSuite(); 2857 TypeParameterTypeImplTest.dartSuite();
2858 ClassElementImplTest.dartSuite(); 2858 ClassElementImplTest.dartSuite();
2859 ElementLocationImplTest.dartSuite(); 2859 ElementLocationImplTest.dartSuite();
2860 ElementImplTest.dartSuite(); 2860 ElementImplTest.dartSuite();
2861 LibraryElementImplTest.dartSuite(); 2861 LibraryElementImplTest.dartSuite();
2862 } 2862 }
OLDNEW
« no previous file with comments | « pkg/analyzer_experimental/lib/src/generated/source_io.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