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

Unified Diff: tests/compiler/dart2js_native/native_mixin_multiple3_test.dart

Issue 14286007: Revert "Native mixin interceptor bug fix" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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
« no previous file with comments | « tests/compiler/dart2js_native/native_mixin_multiple2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_native/native_mixin_multiple3_test.dart
diff --git a/tests/compiler/dart2js_native/native_mixin_multiple3_test.dart b/tests/compiler/dart2js_native/native_mixin_multiple3_test.dart
deleted file mode 100644
index 50340e44358b0be849899d390214d6ec90736ac4..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js_native/native_mixin_multiple3_test.dart
+++ /dev/null
@@ -1,85 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-import "package:expect/expect.dart";
-
-// Test that native classes and plain classes can access methods defined only by
-// the same mixin.
-
-
-class D extends Object with M1, M2, M3 {
-}
-
-class E extends D {
- foo() => 'E.foo';
-}
-
-class M1 { }
-
-class M2 {
- foo() => 'M2.foo';
-}
-
-class M3 { }
-
-class A native "A" {
- foo() => 'A.foo';
-}
-
-class B extends A with M1, M2, M3 native "B" {}
-
-class C extends B native "C" {
- foo() => 'C.foo';
-}
-
-makeA() native;
-makeB() native;
-makeC() native;
-
-void setup() native """
-function A() {}
-function B() {}
-function C() {}
-makeA = function(){return new A;};
-makeB = function(){return new B;};
-makeC = function(){return new C;};
-""";
-
-var g;
-
-callFoo(x) {
- // Dominating getInterceptor call should be shared.
- g = x.toString();
- // These call sites are partitioned into pure-dart and native subsets,
- // allowing differences in getInterceptors.
- if (x is D) return x.foo();
- if (x is A) return x.foo();
-}
-
-makeAll() => [makeA(), makeB(), makeC(), new D(), new E()];
-
-main() {
- setup();
- /*
- var a = makeA();
- var b = makeB();
- var c = makeC();
- var d = new D();
- var e = new E();
- */
- var x = makeAll();
- var a = x[0];
- var b = x[1];
- var c = x[2];
- var d = x[3];
- var e = x[4];
-
- var f = callFoo;
-
- Expect.equals('A.foo', f(a));
- Expect.equals('M2.foo', f(b));
- Expect.equals('C.foo', f(c));
- Expect.equals('M2.foo', f(d));
- Expect.equals('E.foo', f(e));
-}
« no previous file with comments | « tests/compiler/dart2js_native/native_mixin_multiple2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698