| OLD | NEW |
| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 final __test = new ElementLocationImplTest(); | 107 final __test = new ElementLocationImplTest(); |
| 108 runJUnitTest(__test, __test.test_hashCode_equal); | 108 runJUnitTest(__test, __test.test_hashCode_equal); |
| 109 }); | 109 }); |
| 110 _ut.test('test_hashCode_equalWithDifferentUriKind', () { | 110 _ut.test('test_hashCode_equalWithDifferentUriKind', () { |
| 111 final __test = new ElementLocationImplTest(); | 111 final __test = new ElementLocationImplTest(); |
| 112 runJUnitTest(__test, __test.test_hashCode_equalWithDifferentUriKind); | 112 runJUnitTest(__test, __test.test_hashCode_equalWithDifferentUriKind); |
| 113 }); | 113 }); |
| 114 }); | 114 }); |
| 115 } | 115 } |
| 116 } | 116 } |
| 117 class MultiplyDefinedElementImplTest extends EngineTestCase { |
| 118 void test_fromElements_conflicting() { |
| 119 Element firstElement = ElementFactory.localVariableElement2("xx"); |
| 120 Element secondElement = ElementFactory.localVariableElement2("yy"); |
| 121 Element result = MultiplyDefinedElementImpl.fromElements(null, firstElement,
secondElement); |
| 122 EngineTestCase.assertInstanceOf(MultiplyDefinedElement, result); |
| 123 List<Element> elements = ((result as MultiplyDefinedElement)).conflictingEle
ments; |
| 124 EngineTestCase.assertLength(2, elements); |
| 125 for (int i = 0; i < elements.length; i++) { |
| 126 EngineTestCase.assertInstanceOf(LocalVariableElement, elements[i]); |
| 127 } |
| 128 } |
| 129 void test_fromElements_multiple() { |
| 130 Element firstElement = ElementFactory.localVariableElement2("xx"); |
| 131 Element secondElement = ElementFactory.localVariableElement2("yy"); |
| 132 Element thirdElement = ElementFactory.localVariableElement2("zz"); |
| 133 Element result = MultiplyDefinedElementImpl.fromElements(null, MultiplyDefin
edElementImpl.fromElements(null, firstElement, secondElement), thirdElement); |
| 134 EngineTestCase.assertInstanceOf(MultiplyDefinedElement, result); |
| 135 List<Element> elements = ((result as MultiplyDefinedElement)).conflictingEle
ments; |
| 136 EngineTestCase.assertLength(3, elements); |
| 137 for (int i = 0; i < elements.length; i++) { |
| 138 EngineTestCase.assertInstanceOf(LocalVariableElement, elements[i]); |
| 139 } |
| 140 } |
| 141 void test_fromElements_nonConflicting() { |
| 142 Element element = ElementFactory.localVariableElement2("xx"); |
| 143 JUnitTestCase.assertSame(element, MultiplyDefinedElementImpl.fromElements(nu
ll, element, element)); |
| 144 } |
| 145 static dartSuite() { |
| 146 _ut.group('MultiplyDefinedElementImplTest', () { |
| 147 _ut.test('test_fromElements_conflicting', () { |
| 148 final __test = new MultiplyDefinedElementImplTest(); |
| 149 runJUnitTest(__test, __test.test_fromElements_conflicting); |
| 150 }); |
| 151 _ut.test('test_fromElements_multiple', () { |
| 152 final __test = new MultiplyDefinedElementImplTest(); |
| 153 runJUnitTest(__test, __test.test_fromElements_multiple); |
| 154 }); |
| 155 _ut.test('test_fromElements_nonConflicting', () { |
| 156 final __test = new MultiplyDefinedElementImplTest(); |
| 157 runJUnitTest(__test, __test.test_fromElements_nonConflicting); |
| 158 }); |
| 159 }); |
| 160 } |
| 161 } |
| 117 class LibraryElementImplTest extends EngineTestCase { | 162 class LibraryElementImplTest extends EngineTestCase { |
| 118 void test_creation() { | 163 void test_creation() { |
| 119 JUnitTestCase.assertNotNull(new LibraryElementImpl(createAnalysisContext(),
ASTFactory.libraryIdentifier2(["l"]))); | 164 JUnitTestCase.assertNotNull(new LibraryElementImpl(createAnalysisContext(),
ASTFactory.libraryIdentifier2(["l"]))); |
| 120 } | 165 } |
| 121 void test_getImportedLibraries() { | 166 void test_getImportedLibraries() { |
| 122 AnalysisContext context = createAnalysisContext(); | 167 AnalysisContext context = createAnalysisContext(); |
| 123 LibraryElementImpl library1 = ElementFactory.library(context, "l1"); | 168 LibraryElementImpl library1 = ElementFactory.library(context, "l1"); |
| 124 LibraryElementImpl library2 = ElementFactory.library(context, "l2"); | 169 LibraryElementImpl library2 = ElementFactory.library(context, "l2"); |
| 125 LibraryElementImpl library3 = ElementFactory.library(context, "l3"); | 170 LibraryElementImpl library3 = ElementFactory.library(context, "l3"); |
| 126 LibraryElementImpl library4 = ElementFactory.library(context, "l4"); | 171 LibraryElementImpl library4 = ElementFactory.library(context, "l4"); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 runJUnitTest(__test, __test.test_isUpToDate); | 243 runJUnitTest(__test, __test.test_isUpToDate); |
| 199 }); | 244 }); |
| 200 _ut.test('test_setImports', () { | 245 _ut.test('test_setImports', () { |
| 201 final __test = new LibraryElementImplTest(); | 246 final __test = new LibraryElementImplTest(); |
| 202 runJUnitTest(__test, __test.test_setImports); | 247 runJUnitTest(__test, __test.test_setImports); |
| 203 }); | 248 }); |
| 204 }); | 249 }); |
| 205 } | 250 } |
| 206 } | 251 } |
| 207 class TypeParameterTypeImplTest extends EngineTestCase { | 252 class TypeParameterTypeImplTest extends EngineTestCase { |
| 208 void fail_isMoreSpecificThan_typeArguments_object() { | |
| 209 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); | |
| 210 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); | |
| 211 JUnitTestCase.assertTrue(type.isMoreSpecificThan(ElementFactory.object.type)
); | |
| 212 } | |
| 213 void fail_isMoreSpecificThan_typeArguments_self() { | |
| 214 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); | |
| 215 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); | |
| 216 JUnitTestCase.assertTrue(type.isMoreSpecificThan(type)); | |
| 217 } | |
| 218 void test_creation() { | 253 void test_creation() { |
| 219 JUnitTestCase.assertNotNull(new TypeParameterTypeImpl(new TypeParameterEleme
ntImpl(ASTFactory.identifier3("E")))); | 254 JUnitTestCase.assertNotNull(new TypeParameterTypeImpl(new TypeParameterEleme
ntImpl(ASTFactory.identifier3("E")))); |
| 220 } | 255 } |
| 221 void test_getElement() { | 256 void test_getElement() { |
| 222 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); | 257 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 223 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); | 258 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| 224 JUnitTestCase.assertEquals(element, type.element); | 259 JUnitTestCase.assertEquals(element, type.element); |
| 225 } | 260 } |
| 261 void test_isMoreSpecificThan_typeArguments_bottom() { |
| 262 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 263 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| 264 JUnitTestCase.assertTrue(type.isMoreSpecificThan(BottomTypeImpl.instance)); |
| 265 } |
| 266 void test_isMoreSpecificThan_typeArguments_dynamic() { |
| 267 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 268 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| 269 JUnitTestCase.assertTrue(type.isMoreSpecificThan(DynamicTypeImpl.instance)); |
| 270 } |
| 271 void test_isMoreSpecificThan_typeArguments_object() { |
| 272 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 273 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| 274 JUnitTestCase.assertTrue(type.isMoreSpecificThan(ElementFactory.object.type)
); |
| 275 } |
| 276 void test_isMoreSpecificThan_typeArguments_resursive() { |
| 277 ClassElementImpl classS = ElementFactory.classElement2("A", []); |
| 278 TypeParameterElementImpl typeParameterU = new TypeParameterElementImpl(ASTFa
ctory.identifier3("U")); |
| 279 TypeParameterTypeImpl typeParameterTypeU = new TypeParameterTypeImpl(typePar
ameterU); |
| 280 TypeParameterElementImpl typeParameterT = new TypeParameterElementImpl(ASTFa
ctory.identifier3("T")); |
| 281 TypeParameterTypeImpl typeParameterTypeT = new TypeParameterTypeImpl(typePar
ameterT); |
| 282 typeParameterT.bound = typeParameterTypeU; |
| 283 typeParameterU.bound = typeParameterTypeU; |
| 284 JUnitTestCase.assertFalse(typeParameterTypeT.isMoreSpecificThan(classS.type)
); |
| 285 } |
| 286 void test_isMoreSpecificThan_typeArguments_self() { |
| 287 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 288 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| 289 JUnitTestCase.assertTrue(type.isMoreSpecificThan(type)); |
| 290 } |
| 291 void test_isMoreSpecificThan_typeArguments_transitivity_interfaceTypes() { |
| 292 ClassElement classA = ElementFactory.classElement2("A", []); |
| 293 ClassElement classB = ElementFactory.classElement("B", classA.type, []); |
| 294 InterfaceType typeA = classA.type; |
| 295 InterfaceType typeB = classB.type; |
| 296 TypeParameterElementImpl typeParameterT = new TypeParameterElementImpl(ASTFa
ctory.identifier3("T")); |
| 297 typeParameterT.bound = typeB; |
| 298 TypeParameterTypeImpl typeParameterTypeT = new TypeParameterTypeImpl(typePar
ameterT); |
| 299 JUnitTestCase.assertTrue(typeParameterTypeT.isMoreSpecificThan(typeA)); |
| 300 } |
| 301 void test_isMoreSpecificThan_typeArguments_transitivity_typeParameters() { |
| 302 ClassElementImpl classS = ElementFactory.classElement2("A", []); |
| 303 TypeParameterElementImpl typeParameterU = new TypeParameterElementImpl(ASTFa
ctory.identifier3("U")); |
| 304 typeParameterU.bound = classS.type; |
| 305 TypeParameterTypeImpl typeParameterTypeU = new TypeParameterTypeImpl(typePar
ameterU); |
| 306 TypeParameterElementImpl typeParameterT = new TypeParameterElementImpl(ASTFa
ctory.identifier3("T")); |
| 307 typeParameterT.bound = typeParameterTypeU; |
| 308 TypeParameterTypeImpl typeParameterTypeT = new TypeParameterTypeImpl(typePar
ameterT); |
| 309 JUnitTestCase.assertTrue(typeParameterTypeT.isMoreSpecificThan(classS.type))
; |
| 310 } |
| 226 void test_isMoreSpecificThan_typeArguments_upperBound() { | 311 void test_isMoreSpecificThan_typeArguments_upperBound() { |
| 227 ClassElementImpl classS = ElementFactory.classElement2("A", []); | 312 ClassElementImpl classS = ElementFactory.classElement2("A", []); |
| 228 TypeParameterElementImpl typeParameterT = new TypeParameterElementImpl(ASTFa
ctory.identifier3("T")); | 313 TypeParameterElementImpl typeParameterT = new TypeParameterElementImpl(ASTFa
ctory.identifier3("T")); |
| 229 typeParameterT.bound = classS.type; | 314 typeParameterT.bound = classS.type; |
| 230 TypeParameterTypeImpl typeParameterTypeT = new TypeParameterTypeImpl(typePar
ameterT); | 315 TypeParameterTypeImpl typeParameterTypeT = new TypeParameterTypeImpl(typePar
ameterT); |
| 231 JUnitTestCase.assertTrue(typeParameterTypeT.isMoreSpecificThan(classS.type))
; | 316 JUnitTestCase.assertTrue(typeParameterTypeT.isMoreSpecificThan(classS.type))
; |
| 232 } | 317 } |
| 233 void test_substitute_equal() { | 318 void test_substitute_equal() { |
| 234 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); | 319 TypeParameterElementImpl element = new TypeParameterElementImpl(ASTFactory.i
dentifier3("E")); |
| 235 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); | 320 TypeParameterTypeImpl type = new TypeParameterTypeImpl(element); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 246 static dartSuite() { | 331 static dartSuite() { |
| 247 _ut.group('TypeParameterTypeImplTest', () { | 332 _ut.group('TypeParameterTypeImplTest', () { |
| 248 _ut.test('test_creation', () { | 333 _ut.test('test_creation', () { |
| 249 final __test = new TypeParameterTypeImplTest(); | 334 final __test = new TypeParameterTypeImplTest(); |
| 250 runJUnitTest(__test, __test.test_creation); | 335 runJUnitTest(__test, __test.test_creation); |
| 251 }); | 336 }); |
| 252 _ut.test('test_getElement', () { | 337 _ut.test('test_getElement', () { |
| 253 final __test = new TypeParameterTypeImplTest(); | 338 final __test = new TypeParameterTypeImplTest(); |
| 254 runJUnitTest(__test, __test.test_getElement); | 339 runJUnitTest(__test, __test.test_getElement); |
| 255 }); | 340 }); |
| 341 _ut.test('test_isMoreSpecificThan_typeArguments_bottom', () { |
| 342 final __test = new TypeParameterTypeImplTest(); |
| 343 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_bottom
); |
| 344 }); |
| 345 _ut.test('test_isMoreSpecificThan_typeArguments_dynamic', () { |
| 346 final __test = new TypeParameterTypeImplTest(); |
| 347 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_dynami
c); |
| 348 }); |
| 349 _ut.test('test_isMoreSpecificThan_typeArguments_object', () { |
| 350 final __test = new TypeParameterTypeImplTest(); |
| 351 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_object
); |
| 352 }); |
| 353 _ut.test('test_isMoreSpecificThan_typeArguments_resursive', () { |
| 354 final __test = new TypeParameterTypeImplTest(); |
| 355 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_resurs
ive); |
| 356 }); |
| 357 _ut.test('test_isMoreSpecificThan_typeArguments_self', () { |
| 358 final __test = new TypeParameterTypeImplTest(); |
| 359 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_self); |
| 360 }); |
| 361 _ut.test('test_isMoreSpecificThan_typeArguments_transitivity_interfaceType
s', () { |
| 362 final __test = new TypeParameterTypeImplTest(); |
| 363 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_transi
tivity_interfaceTypes); |
| 364 }); |
| 365 _ut.test('test_isMoreSpecificThan_typeArguments_transitivity_typeParameter
s', () { |
| 366 final __test = new TypeParameterTypeImplTest(); |
| 367 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_transi
tivity_typeParameters); |
| 368 }); |
| 256 _ut.test('test_isMoreSpecificThan_typeArguments_upperBound', () { | 369 _ut.test('test_isMoreSpecificThan_typeArguments_upperBound', () { |
| 257 final __test = new TypeParameterTypeImplTest(); | 370 final __test = new TypeParameterTypeImplTest(); |
| 258 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_upperB
ound); | 371 runJUnitTest(__test, __test.test_isMoreSpecificThan_typeArguments_upperB
ound); |
| 259 }); | 372 }); |
| 260 _ut.test('test_substitute_equal', () { | 373 _ut.test('test_substitute_equal', () { |
| 261 final __test = new TypeParameterTypeImplTest(); | 374 final __test = new TypeParameterTypeImplTest(); |
| 262 runJUnitTest(__test, __test.test_substitute_equal); | 375 runJUnitTest(__test, __test.test_substitute_equal); |
| 263 }); | 376 }); |
| 264 _ut.test('test_substitute_notEqual', () { | 377 _ut.test('test_substitute_notEqual', () { |
| 265 final __test = new TypeParameterTypeImplTest(); | 378 final __test = new TypeParameterTypeImplTest(); |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 void test_isSubtypeOf_transitive_superclass() { | 1102 void test_isSubtypeOf_transitive_superclass() { |
| 990 ClassElement classA = ElementFactory.classElement2("A", []); | 1103 ClassElement classA = ElementFactory.classElement2("A", []); |
| 991 ClassElement classB = ElementFactory.classElement("B", classA.type, []); | 1104 ClassElement classB = ElementFactory.classElement("B", classA.type, []); |
| 992 ClassElement classC = ElementFactory.classElement("C", classB.type, []); | 1105 ClassElement classC = ElementFactory.classElement("C", classB.type, []); |
| 993 InterfaceType typeA = classA.type; | 1106 InterfaceType typeA = classA.type; |
| 994 InterfaceType typeC = classC.type; | 1107 InterfaceType typeC = classC.type; |
| 995 JUnitTestCase.assertTrue(typeC.isSubtypeOf(typeA)); | 1108 JUnitTestCase.assertTrue(typeC.isSubtypeOf(typeA)); |
| 996 JUnitTestCase.assertFalse(typeA.isSubtypeOf(typeC)); | 1109 JUnitTestCase.assertFalse(typeA.isSubtypeOf(typeC)); |
| 997 } | 1110 } |
| 998 void test_isSubtypeOf_typeArguments() { | 1111 void test_isSubtypeOf_typeArguments() { |
| 1112 Type2 dynamicType = DynamicTypeImpl.instance; |
| 999 ClassElement classA = ElementFactory.classElement2("A", ["E"]); | 1113 ClassElement classA = ElementFactory.classElement2("A", ["E"]); |
| 1000 ClassElement classI = ElementFactory.classElement2("I", []); | 1114 ClassElement classI = ElementFactory.classElement2("I", []); |
| 1001 ClassElement classJ = ElementFactory.classElement("J", classI.type, []); | 1115 ClassElement classJ = ElementFactory.classElement("J", classI.type, []); |
| 1002 ClassElement classK = ElementFactory.classElement2("K", []); | 1116 ClassElement classK = ElementFactory.classElement2("K", []); |
| 1003 InterfaceType typeA = classA.type; | 1117 InterfaceType typeA = classA.type; |
| 1118 InterfaceType typeA_dynamic = typeA.substitute4(<Type2> [dynamicType]); |
| 1004 InterfaceTypeImpl typeAI = new InterfaceTypeImpl.con1(classA); | 1119 InterfaceTypeImpl typeAI = new InterfaceTypeImpl.con1(classA); |
| 1005 InterfaceTypeImpl typeAJ = new InterfaceTypeImpl.con1(classA); | 1120 InterfaceTypeImpl typeAJ = new InterfaceTypeImpl.con1(classA); |
| 1006 InterfaceTypeImpl typeAK = new InterfaceTypeImpl.con1(classA); | 1121 InterfaceTypeImpl typeAK = new InterfaceTypeImpl.con1(classA); |
| 1007 typeAI.typeArguments = <Type2> [classI.type]; | 1122 typeAI.typeArguments = <Type2> [classI.type]; |
| 1008 typeAJ.typeArguments = <Type2> [classJ.type]; | 1123 typeAJ.typeArguments = <Type2> [classJ.type]; |
| 1009 typeAK.typeArguments = <Type2> [classK.type]; | 1124 typeAK.typeArguments = <Type2> [classK.type]; |
| 1010 JUnitTestCase.assertTrue(typeAJ.isSubtypeOf(typeAI)); | 1125 JUnitTestCase.assertTrue(typeAJ.isSubtypeOf(typeAI)); |
| 1011 JUnitTestCase.assertFalse(typeAI.isSubtypeOf(typeAJ)); | 1126 JUnitTestCase.assertFalse(typeAI.isSubtypeOf(typeAJ)); |
| 1012 JUnitTestCase.assertTrue(typeAI.isSubtypeOf(typeAI)); | 1127 JUnitTestCase.assertTrue(typeAI.isSubtypeOf(typeAI)); |
| 1013 JUnitTestCase.assertTrue(typeA.isSubtypeOf(typeAI)); | 1128 JUnitTestCase.assertTrue(typeA_dynamic.isSubtypeOf(typeAI)); |
| 1014 JUnitTestCase.assertTrue(typeA.isSubtypeOf(typeAJ)); | 1129 JUnitTestCase.assertTrue(typeA_dynamic.isSubtypeOf(typeAJ)); |
| 1015 JUnitTestCase.assertTrue(typeAI.isSubtypeOf(typeA)); | 1130 JUnitTestCase.assertTrue(typeAI.isSubtypeOf(typeA_dynamic)); |
| 1016 JUnitTestCase.assertTrue(typeAJ.isSubtypeOf(typeA)); | 1131 JUnitTestCase.assertTrue(typeAJ.isSubtypeOf(typeA_dynamic)); |
| 1017 JUnitTestCase.assertFalse(typeAI.isSubtypeOf(typeAK)); | 1132 JUnitTestCase.assertFalse(typeAI.isSubtypeOf(typeAK)); |
| 1018 JUnitTestCase.assertFalse(typeAK.isSubtypeOf(typeAI)); | 1133 JUnitTestCase.assertFalse(typeAK.isSubtypeOf(typeAI)); |
| 1019 } | 1134 } |
| 1020 void test_isSupertypeOf_directSupertype() { | 1135 void test_isSupertypeOf_directSupertype() { |
| 1021 ClassElement classA = ElementFactory.classElement2("A", []); | 1136 ClassElement classA = ElementFactory.classElement2("A", []); |
| 1022 ClassElement classB = ElementFactory.classElement("B", classA.type, []); | 1137 ClassElement classB = ElementFactory.classElement("B", classA.type, []); |
| 1023 InterfaceType typeA = classA.type; | 1138 InterfaceType typeA = classA.type; |
| 1024 InterfaceType typeB = classB.type; | 1139 InterfaceType typeB = classB.type; |
| 1025 JUnitTestCase.assertFalse(typeB.isSupertypeOf(typeA)); | 1140 JUnitTestCase.assertFalse(typeB.isSupertypeOf(typeA)); |
| 1026 JUnitTestCase.assertTrue(typeA.isSupertypeOf(typeB)); | 1141 JUnitTestCase.assertTrue(typeA.isSupertypeOf(typeB)); |
| (...skipping 1825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2852 } | 2967 } |
| 2853 main() { | 2968 main() { |
| 2854 ElementKindTest.dartSuite(); | 2969 ElementKindTest.dartSuite(); |
| 2855 FunctionTypeImplTest.dartSuite(); | 2970 FunctionTypeImplTest.dartSuite(); |
| 2856 InterfaceTypeImplTest.dartSuite(); | 2971 InterfaceTypeImplTest.dartSuite(); |
| 2857 TypeParameterTypeImplTest.dartSuite(); | 2972 TypeParameterTypeImplTest.dartSuite(); |
| 2858 ClassElementImplTest.dartSuite(); | 2973 ClassElementImplTest.dartSuite(); |
| 2859 ElementLocationImplTest.dartSuite(); | 2974 ElementLocationImplTest.dartSuite(); |
| 2860 ElementImplTest.dartSuite(); | 2975 ElementImplTest.dartSuite(); |
| 2861 LibraryElementImplTest.dartSuite(); | 2976 LibraryElementImplTest.dartSuite(); |
| 2977 MultiplyDefinedElementImplTest.dartSuite(); |
| 2862 } | 2978 } |
| OLD | NEW |