OLD | NEW |
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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 } | 1071 } |
1072 } | 1072 } |
1073 | 1073 |
1074 class ElementLocationImplTest extends EngineTestCase { | 1074 class ElementLocationImplTest extends EngineTestCase { |
1075 void test_create_encoding() { | 1075 void test_create_encoding() { |
1076 String encoding = "a;b;c"; | 1076 String encoding = "a;b;c"; |
1077 ElementLocationImpl location = new ElementLocationImpl.con2(encoding); | 1077 ElementLocationImpl location = new ElementLocationImpl.con2(encoding); |
1078 JUnitTestCase.assertEquals(encoding, location.encoding); | 1078 JUnitTestCase.assertEquals(encoding, location.encoding); |
1079 } | 1079 } |
1080 | 1080 |
| 1081 /** |
| 1082 * For example unnamed constructor. |
| 1083 */ |
| 1084 void test_create_encoding_emptyLast() { |
| 1085 String encoding = "a;b;c;"; |
| 1086 ElementLocationImpl location = new ElementLocationImpl.con2(encoding); |
| 1087 JUnitTestCase.assertEquals(encoding, location.encoding); |
| 1088 } |
| 1089 |
1081 void test_equals_equal() { | 1090 void test_equals_equal() { |
1082 String encoding = "a;b;c"; | 1091 String encoding = "a;b;c"; |
1083 ElementLocationImpl first = new ElementLocationImpl.con2(encoding); | 1092 ElementLocationImpl first = new ElementLocationImpl.con2(encoding); |
1084 ElementLocationImpl second = new ElementLocationImpl.con2(encoding); | 1093 ElementLocationImpl second = new ElementLocationImpl.con2(encoding); |
1085 JUnitTestCase.assertTrue(first == second); | 1094 JUnitTestCase.assertTrue(first == second); |
1086 } | 1095 } |
1087 | 1096 |
1088 void test_equals_equalWithDifferentUriKind() { | 1097 void test_equals_equalWithDifferentUriKind() { |
1089 ElementLocationImpl first = new ElementLocationImpl.con2("fa;fb;c"); | 1098 ElementLocationImpl first = new ElementLocationImpl.con2("fa;fb;c"); |
1090 ElementLocationImpl second = new ElementLocationImpl.con2("pa;pb;c"); | 1099 ElementLocationImpl second = new ElementLocationImpl.con2("pa;pb;c"); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1136 ElementLocationImpl second = new ElementLocationImpl.con2("pa;pb;c"); | 1145 ElementLocationImpl second = new ElementLocationImpl.con2("pa;pb;c"); |
1137 JUnitTestCase.assertTrue(first.hashCode == second.hashCode); | 1146 JUnitTestCase.assertTrue(first.hashCode == second.hashCode); |
1138 } | 1147 } |
1139 | 1148 |
1140 static dartSuite() { | 1149 static dartSuite() { |
1141 _ut.group('ElementLocationImplTest', () { | 1150 _ut.group('ElementLocationImplTest', () { |
1142 _ut.test('test_create_encoding', () { | 1151 _ut.test('test_create_encoding', () { |
1143 final __test = new ElementLocationImplTest(); | 1152 final __test = new ElementLocationImplTest(); |
1144 runJUnitTest(__test, __test.test_create_encoding); | 1153 runJUnitTest(__test, __test.test_create_encoding); |
1145 }); | 1154 }); |
| 1155 _ut.test('test_create_encoding_emptyLast', () { |
| 1156 final __test = new ElementLocationImplTest(); |
| 1157 runJUnitTest(__test, __test.test_create_encoding_emptyLast); |
| 1158 }); |
1146 _ut.test('test_equals_equal', () { | 1159 _ut.test('test_equals_equal', () { |
1147 final __test = new ElementLocationImplTest(); | 1160 final __test = new ElementLocationImplTest(); |
1148 runJUnitTest(__test, __test.test_equals_equal); | 1161 runJUnitTest(__test, __test.test_equals_equal); |
1149 }); | 1162 }); |
1150 _ut.test('test_equals_equalWithDifferentUriKind', () { | 1163 _ut.test('test_equals_equalWithDifferentUriKind', () { |
1151 final __test = new ElementLocationImplTest(); | 1164 final __test = new ElementLocationImplTest(); |
1152 runJUnitTest(__test, __test.test_equals_equalWithDifferentUriKind); | 1165 runJUnitTest(__test, __test.test_equals_equalWithDifferentUriKind); |
1153 }); | 1166 }); |
1154 _ut.test('test_equals_notEqual_differentLengths', () { | 1167 _ut.test('test_equals_notEqual_differentLengths', () { |
1155 final __test = new ElementLocationImplTest(); | 1168 final __test = new ElementLocationImplTest(); |
(...skipping 3121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4277 InterfaceTypeImplTest.dartSuite(); | 4290 InterfaceTypeImplTest.dartSuite(); |
4278 TypeParameterTypeImplTest.dartSuite(); | 4291 TypeParameterTypeImplTest.dartSuite(); |
4279 VoidTypeImplTest.dartSuite(); | 4292 VoidTypeImplTest.dartSuite(); |
4280 ClassElementImplTest.dartSuite(); | 4293 ClassElementImplTest.dartSuite(); |
4281 ElementLocationImplTest.dartSuite(); | 4294 ElementLocationImplTest.dartSuite(); |
4282 ElementImplTest.dartSuite(); | 4295 ElementImplTest.dartSuite(); |
4283 HtmlElementImplTest.dartSuite(); | 4296 HtmlElementImplTest.dartSuite(); |
4284 LibraryElementImplTest.dartSuite(); | 4297 LibraryElementImplTest.dartSuite(); |
4285 MultiplyDefinedElementImplTest.dartSuite(); | 4298 MultiplyDefinedElementImplTest.dartSuite(); |
4286 } | 4299 } |
OLD | NEW |