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

Unified Diff: pkg/kernel/test/class_hierarchy_test.dart

Issue 2922533002: Start implementing IncrementalClassHierarchy. (Closed)
Patch Set: Fixes for review comments. Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/kernel/test/class_hierarchy_test.dart
diff --git a/pkg/kernel/test/class_hierarchy_test.dart b/pkg/kernel/test/class_hierarchy_test.dart
index 2e51ac9b0d521113c27d804da047f4ecd24761a4..27d7a98dd1a3ad8040316b41f53debca2ac4f5cb 100644
--- a/pkg/kernel/test/class_hierarchy_test.dart
+++ b/pkg/kernel/test/class_hierarchy_test.dart
@@ -5,6 +5,7 @@
import 'package:kernel/ast.dart';
import 'package:kernel/class_hierarchy.dart';
import 'package:kernel/core_types.dart';
+import 'package:kernel/src/incremental_class_hierarchy.dart';
import 'package:kernel/testing/mock_sdk_program.dart';
import 'package:kernel/text/ast_to_text.dart';
import 'package:kernel/type_algebra.dart';
@@ -14,6 +15,7 @@ import 'package:test_reflective_loader/test_reflective_loader.dart';
main() {
defineReflectiveSuite(() {
defineReflectiveTests(ClosedWorldClassHierarchyTest);
+ defineReflectiveTests(IncrementalClassHierarchyTest);
});
}
@@ -24,6 +26,93 @@ class ClosedWorldClassHierarchyTest extends _ClassHierarchyTest {
}
}
+@reflectiveTest
+class IncrementalClassHierarchyTest extends _ClassHierarchyTest {
+ ClassHierarchy createClassHierarchy(Program program) {
+ return new IncrementalClassHierarchy();
+ }
+
+ @failingTest
+ void test_forEachOverridePair_overrideSupertype() {
+ super.test_forEachOverridePair_overrideSupertype();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_generic_extends() {
+ super.test_getClassAsInstanceOf_generic_extends();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_generic_implements() {
+ super.test_getClassAsInstanceOf_generic_implements();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_generic_with() {
+ super.test_getClassAsInstanceOf_generic_with();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_notGeneric_extends() {
+ super.test_getClassAsInstanceOf_notGeneric_extends();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_notGeneric_implements() {
+ super.test_getClassAsInstanceOf_notGeneric_implements();
+ }
+
+ @failingTest
+ void test_getClassAsInstanceOf_notGeneric_with() {
+ super.test_getClassAsInstanceOf_notGeneric_with();
+ }
+
+ @failingTest
+ void test_getClassicLeastUpperBound_expansive() {
+ super.test_getClassicLeastUpperBound_expansive();
+ }
+
+ @failingTest
+ void test_getClassicLeastUpperBound_generic() {
+ super.test_getClassicLeastUpperBound_generic();
+ }
+
+ @failingTest
+ void test_getClassicLeastUpperBound_nonGeneric() {
+ super.test_getClassicLeastUpperBound_nonGeneric();
+ }
+
+ @failingTest
+ void test_getDispatchTarget() {
+ super.test_getDispatchTarget();
+ }
+
+ @failingTest
+ void test_getDispatchTarget_abstract() {
+ super.test_getDispatchTarget_abstract();
+ }
+
+ @failingTest
+ void test_getInterfaceMember_extends() {
+ super.test_getInterfaceMember_extends();
+ }
+
+ @failingTest
+ void test_getInterfaceMember_implements() {
+ super.test_getInterfaceMember_implements();
+ }
+
+ @failingTest
+ void test_getRankedSuperclasses() {
+ super.test_getRankedSuperclasses();
+ }
+
+ @failingTest
+ void test_getTypeAsInstanceOf_generic_extends() {
+ super.test_getTypeAsInstanceOf_generic_extends();
+ }
+}
+
abstract class _ClassHierarchyTest {
Program program;
CoreTypes coreTypes;

Powered by Google App Engine
This is Rietveld 408576698