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

Unified Diff: pkg/analyzer/test/src/dart/element/element_test.dart

Issue 1529923003: Moved the tests for the element model into locations corresponding to the implementation (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/src/dart/element/element_test.dart
diff --git a/pkg/analyzer/test/generated/element_test.dart b/pkg/analyzer/test/src/dart/element/element_test.dart
similarity index 99%
rename from pkg/analyzer/test/generated/element_test.dart
rename to pkg/analyzer/test/src/dart/element/element_test.dart
index 301352e761dfdffb76a64b353069874a1e470245..bf01506e006be669e65774f6b6a9c45e5d39f5bd 100644
--- a/pkg/analyzer/test/generated/element_test.dart
+++ b/pkg/analyzer/test/src/dart/element/element_test.dart
@@ -18,14 +18,14 @@ import 'package:analyzer/src/generated/testing/element_factory.dart';
import 'package:analyzer/src/generated/testing/test_type_provider.dart';
import 'package:unittest/unittest.dart';
-import '../reflective_tests.dart';
-import '../utils.dart';
-import 'resolver_test.dart' show TestTypeProvider, AnalysisContextHelper;
-import 'test_support.dart';
+import '../../../generated/resolver_test.dart'
+ show TestTypeProvider, AnalysisContextHelper;
+import '../../../generated/test_support.dart';
+import '../../../reflective_tests.dart';
+import '../../../utils.dart';
main() {
initializeTestEnvironment();
- runReflectiveTests(ElementKindTest);
runReflectiveTests(FieldElementImplTest);
runReflectiveTests(FunctionTypeImplTest);
runReflectiveTests(InterfaceTypeImplTest);
@@ -1167,18 +1167,6 @@ class ElementImplTest extends EngineTestCase {
}
@reflectiveTest
-class ElementKindTest extends EngineTestCase {
- void test_of_nonNull() {
- expect(ElementKind.of(ElementFactory.classElement2("A")),
- same(ElementKind.CLASS));
- }
-
- void test_of_null() {
- expect(ElementKind.of(null), same(ElementKind.ERROR));
- }
-}
-
-@reflectiveTest
class ElementLocationImplTest extends EngineTestCase {
void test_create_encoding() {
String encoding = "a;b;c";

Powered by Google App Engine
This is Rietveld 408576698