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

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

Issue 12543009: Use JavaFile instead of Dart File. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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
« no previous file with comments | « pkg/analyzer-experimental/lib/src/generated/source_io.dart ('k') | no next file » | 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 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:io'; 7 import 'dart:io';
8 import 'package:analyzer-experimental/src/generated/java_core.dart'; 8 import 'package:analyzer-experimental/src/generated/java_core.dart';
9 import 'package:analyzer-experimental/src/generated/java_engine.dart'; 9 import 'package:analyzer-experimental/src/generated/java_engine.dart';
10 import 'package:analyzer-experimental/src/generated/java_engine_io.dart'; 10 import 'package:analyzer-experimental/src/generated/java_engine_io.dart';
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 static dartSuite() { 141 static dartSuite() {
142 _ut.group('LibraryElementImplTest', () { 142 _ut.group('LibraryElementImplTest', () {
143 _ut.test('test_creation', () { 143 _ut.test('test_creation', () {
144 final __test = new LibraryElementImplTest(); 144 final __test = new LibraryElementImplTest();
145 runJUnitTest(__test, __test.test_creation); 145 runJUnitTest(__test, __test.test_creation);
146 }); 146 });
147 _ut.test('test_getImportedLibraries', () { 147 _ut.test('test_getImportedLibraries', () {
148 final __test = new LibraryElementImplTest(); 148 final __test = new LibraryElementImplTest();
149 runJUnitTest(__test, __test.test_getImportedLibraries); 149 runJUnitTest(__test, __test.test_getImportedLibraries);
150 }); 150 });
151 // _ut.test('test_getPrefixes', () { 151 _ut.test('test_getPrefixes', () {
152 // final __test = new LibraryElementImplTest(); 152 final __test = new LibraryElementImplTest();
153 // runJUnitTest(__test, __test.test_getPrefixes); 153 runJUnitTest(__test, __test.test_getPrefixes);
154 // }); 154 });
155 _ut.test('test_setImports', () { 155 _ut.test('test_setImports', () {
156 final __test = new LibraryElementImplTest(); 156 final __test = new LibraryElementImplTest();
157 runJUnitTest(__test, __test.test_setImports); 157 runJUnitTest(__test, __test.test_setImports);
158 }); 158 });
159 }); 159 });
160 } 160 }
161 } 161 }
162 class InterfaceTypeImplTest extends EngineTestCase { 162 class InterfaceTypeImplTest extends EngineTestCase {
163 void test_computeLongestInheritancePathToObject_multipleInterfacePaths() { 163 void test_computeLongestInheritancePathToObject_multipleInterfacePaths() {
164 ClassElementImpl elementA = ElementFactory.classElement2("A", []); 164 ClassElementImpl elementA = ElementFactory.classElement2("A", []);
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 JUnitTestCase.assertTrue(classElement.isAccessibleIn(library2)); 1402 JUnitTestCase.assertTrue(classElement.isAccessibleIn(library2));
1403 } 1403 }
1404 void test_isAccessibleIn_public_sameLibrary() { 1404 void test_isAccessibleIn_public_sameLibrary() {
1405 LibraryElementImpl library17 = ElementFactory.library(new AnalysisContextImp l(), "lib"); 1405 LibraryElementImpl library17 = ElementFactory.library(new AnalysisContextImp l(), "lib");
1406 ClassElement classElement = ElementFactory.classElement2("C", []); 1406 ClassElement classElement = ElementFactory.classElement2("C", []);
1407 ((library17.definingCompilationUnit as CompilationUnitElementImpl)).types = <ClassElement> [classElement]; 1407 ((library17.definingCompilationUnit as CompilationUnitElementImpl)).types = <ClassElement> [classElement];
1408 JUnitTestCase.assertTrue(classElement.isAccessibleIn(library17)); 1408 JUnitTestCase.assertTrue(classElement.isAccessibleIn(library17));
1409 } 1409 }
1410 static dartSuite() { 1410 static dartSuite() {
1411 _ut.group('ElementImplTest', () { 1411 _ut.group('ElementImplTest', () {
1412 // _ut.test('test_equals', () { 1412 _ut.test('test_equals', () {
1413 // final __test = new ElementImplTest(); 1413 final __test = new ElementImplTest();
1414 // runJUnitTest(__test, __test.test_equals); 1414 runJUnitTest(__test, __test.test_equals);
1415 // }); 1415 });
1416 _ut.test('test_isAccessibleIn_private_differentLibrary', () { 1416 _ut.test('test_isAccessibleIn_private_differentLibrary', () {
1417 final __test = new ElementImplTest(); 1417 final __test = new ElementImplTest();
1418 runJUnitTest(__test, __test.test_isAccessibleIn_private_differentLibrary ); 1418 runJUnitTest(__test, __test.test_isAccessibleIn_private_differentLibrary );
1419 }); 1419 });
1420 _ut.test('test_isAccessibleIn_private_sameLibrary', () { 1420 _ut.test('test_isAccessibleIn_private_sameLibrary', () {
1421 final __test = new ElementImplTest(); 1421 final __test = new ElementImplTest();
1422 runJUnitTest(__test, __test.test_isAccessibleIn_private_sameLibrary); 1422 runJUnitTest(__test, __test.test_isAccessibleIn_private_sameLibrary);
1423 }); 1423 });
1424 _ut.test('test_isAccessibleIn_public_differentLibrary', () { 1424 _ut.test('test_isAccessibleIn_public_differentLibrary', () {
1425 final __test = new ElementImplTest(); 1425 final __test = new ElementImplTest();
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1889 } 1889 }
1890 main() { 1890 main() {
1891 FunctionTypeImplTest.dartSuite(); 1891 FunctionTypeImplTest.dartSuite();
1892 InterfaceTypeImplTest.dartSuite(); 1892 InterfaceTypeImplTest.dartSuite();
1893 TypeVariableTypeImplTest.dartSuite(); 1893 TypeVariableTypeImplTest.dartSuite();
1894 ClassElementImplTest.dartSuite(); 1894 ClassElementImplTest.dartSuite();
1895 ElementLocationImplTest.dartSuite(); 1895 ElementLocationImplTest.dartSuite();
1896 ElementImplTest.dartSuite(); 1896 ElementImplTest.dartSuite();
1897 LibraryElementImplTest.dartSuite(); 1897 LibraryElementImplTest.dartSuite();
1898 } 1898 }
OLDNEW
« no previous file with comments | « pkg/analyzer-experimental/lib/src/generated/source_io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698