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

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

Issue 681003002: Replace ${name} with $name where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up also implementation Created 6 years, 1 month 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 3347 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 3358
3359 void test_isSubtypeOf_subtypeOfSomeElement() { 3359 void test_isSubtypeOf_subtypeOfSomeElement() {
3360 // Subtypes of elements are sub types 3360 // Subtypes of elements are sub types
3361 JUnitTestCase.assertTrue(_typeB.isSubtypeOf(_uA)); 3361 JUnitTestCase.assertTrue(_typeB.isSubtypeOf(_uA));
3362 } 3362 }
3363 3363
3364 void test_nestedUnionsCollapse() { 3364 void test_nestedUnionsCollapse() {
3365 UnionType u = UnionTypeImpl.union([_uAB, _typeA]) as UnionType; 3365 UnionType u = UnionTypeImpl.union([_uAB, _typeA]) as UnionType;
3366 for (DartType t in u.elements) { 3366 for (DartType t in u.elements) {
3367 if (t is UnionType) { 3367 if (t is UnionType) {
3368 JUnitTestCase.fail("Expected only non-union types but found ${t}!"); 3368 JUnitTestCase.fail("Expected only non-union types but found $t!");
3369 } 3369 }
3370 } 3370 }
3371 } 3371 }
3372 3372
3373 void test_noLossage() { 3373 void test_noLossage() {
3374 UnionType u = UnionTypeImpl.union([_typeA, _typeB, _typeB, _typeA, _typeB, _ typeB]) as UnionType; 3374 UnionType u = UnionTypeImpl.union([_typeA, _typeB, _typeB, _typeA, _typeB, _ typeB]) as UnionType;
3375 Set<DartType> elements = u.elements; 3375 Set<DartType> elements = u.elements;
3376 JUnitTestCase.assertTrue(elements.contains(_typeA)); 3376 JUnitTestCase.assertTrue(elements.contains(_typeA));
3377 JUnitTestCase.assertTrue(elements.contains(_typeB)); 3377 JUnitTestCase.assertTrue(elements.contains(_typeB));
3378 JUnitTestCase.assertTrue(elements.length == 2); 3378 JUnitTestCase.assertTrue(elements.length == 2);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
3480 runReflectiveTests(UnionTypeImplTest); 3480 runReflectiveTests(UnionTypeImplTest);
3481 runReflectiveTests(VoidTypeImplTest); 3481 runReflectiveTests(VoidTypeImplTest);
3482 runReflectiveTests(ClassElementImplTest); 3482 runReflectiveTests(ClassElementImplTest);
3483 runReflectiveTests(CompilationUnitElementImplTest); 3483 runReflectiveTests(CompilationUnitElementImplTest);
3484 runReflectiveTests(ElementLocationImplTest); 3484 runReflectiveTests(ElementLocationImplTest);
3485 runReflectiveTests(ElementImplTest); 3485 runReflectiveTests(ElementImplTest);
3486 runReflectiveTests(HtmlElementImplTest); 3486 runReflectiveTests(HtmlElementImplTest);
3487 runReflectiveTests(LibraryElementImplTest); 3487 runReflectiveTests(LibraryElementImplTest);
3488 runReflectiveTests(MultiplyDefinedElementImplTest); 3488 runReflectiveTests(MultiplyDefinedElementImplTest);
3489 } 3489 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/compile_time_error_code_test.dart ('k') | pkg/analyzer/test/generated/engine_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698