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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/DefaultInitTest.dart

Issue 16564002: Don't use 'interface' in test files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/DefaultInitTest.dart
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/DefaultInitTest.dart b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/DefaultInitTest.dart
deleted file mode 100644
index 9d738ad5c1a237a98dfccc5d10f8911b8c7461d0..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/model/testsource/DefaultInitTest.dart
+++ /dev/null
@@ -1,56 +0,0 @@
-// Tests static and instance fields initialization.
-class DefaultInitTest {
- static main() {
- assert(A.a == 0);
- assert(A.b == 2);
- assert(A.c == null);
-
- A a1 = new A(42);
- assert(a1.d == 42);
- assert(a1.e == null);
-
- A a2 = new A.named(43);
- assert(a2.d == null);
- assert(a2.e == 43);
-
- assert(B.instance.x == 42);
- assert(C.instance.z == 3);
- }
-}
-
-class A {
- static final int a = 0;
- static final int b = 2;
- static int c;
- int d;
- int e;
-
- A(int val) {
- d = val;
- }
-
- A.named(int val) {
- e = val;
- }
-}
-
-// The following tests cover cases described in b/4101270
-
-class B {
- static final B instance = const B();
- // by putting this field after the static initializer above, the JS code gen
- // was calling the constructor before the setter of this property was defined.
- final int x;
- const B() : x(41 + 1);
-}
-
-class C {
- // forward reference to another class
- static final D instance = const D();
- C() {}
-}
-
-class D {
- const D(): z(3);
- final int z;
-}

Powered by Google App Engine
This is Rietveld 408576698