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

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

Issue 435483002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element_test; 8 library engine.element_test;
9 9
10 import 'package:analyzer/src/generated/java_core.dart'; 10 import 'package:analyzer/src/generated/java_core.dart';
(...skipping 3518 matching lines...) Expand 10 before | Expand all | Expand 10 after
3529 JUnitTestCase.assertEquals(argumentType, resultArguments[0]); 3529 JUnitTestCase.assertEquals(argumentType, resultArguments[0]);
3530 } 3530 }
3531 3531
3532 void test_substitute_exception() { 3532 void test_substitute_exception() {
3533 try { 3533 try {
3534 ClassElementImpl classA = ElementFactory.classElement2("A", []); 3534 ClassElementImpl classA = ElementFactory.classElement2("A", []);
3535 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); 3535 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA);
3536 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; 3536 InterfaceType argumentType = ElementFactory.classElement2("B", []).type;
3537 type.substitute2(<DartType> [argumentType], <DartType> []); 3537 type.substitute2(<DartType> [argumentType], <DartType> []);
3538 JUnitTestCase.fail("Expected to encounter exception, argument and paramete r type array lengths not equal."); 3538 JUnitTestCase.fail("Expected to encounter exception, argument and paramete r type array lengths not equal.");
3539 } on JavaException catch (e) { 3539 } catch (e) {
3540 } 3540 }
3541 } 3541 }
3542 3542
3543 void test_substitute_notEqual() { 3543 void test_substitute_notEqual() {
3544 ClassElementImpl classA = ElementFactory.classElement2("A", []); 3544 ClassElementImpl classA = ElementFactory.classElement2("A", []);
3545 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for Node(AstFactory.identifier3("E")); 3545 TypeParameterElementImpl parameterElement = new TypeParameterElementImpl.for Node(AstFactory.identifier3("E"));
3546 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA); 3546 InterfaceTypeImpl type = new InterfaceTypeImpl.con1(classA);
3547 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement ); 3547 TypeParameterTypeImpl parameter = new TypeParameterTypeImpl(parameterElement );
3548 type.typeArguments = <DartType> [parameter]; 3548 type.typeArguments = <DartType> [parameter];
3549 InterfaceType argumentType = ElementFactory.classElement2("B", []).type; 3549 InterfaceType argumentType = ElementFactory.classElement2("B", []).type;
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
4482 TypeParameterTypeImplTest.dartSuite(); 4482 TypeParameterTypeImplTest.dartSuite();
4483 VoidTypeImplTest.dartSuite(); 4483 VoidTypeImplTest.dartSuite();
4484 ClassElementImplTest.dartSuite(); 4484 ClassElementImplTest.dartSuite();
4485 CompilationUnitElementImplTest.dartSuite(); 4485 CompilationUnitElementImplTest.dartSuite();
4486 ElementLocationImplTest.dartSuite(); 4486 ElementLocationImplTest.dartSuite();
4487 ElementImplTest.dartSuite(); 4487 ElementImplTest.dartSuite();
4488 HtmlElementImplTest.dartSuite(); 4488 HtmlElementImplTest.dartSuite();
4489 LibraryElementImplTest.dartSuite(); 4489 LibraryElementImplTest.dartSuite();
4490 MultiplyDefinedElementImplTest.dartSuite(); 4490 MultiplyDefinedElementImplTest.dartSuite();
4491 } 4491 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/source_io.dart ('k') | pkg/analyzer/test/generated/parser_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698