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

Unified Diff: tests/language/deferred_mixin_test.dart

Issue 799553002: dart2js: fix mixin support in deferred libraries. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix does not work in CPS-mode, mark test as failing. Created 6 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
« no previous file with comments | « tests/language/deferred_mixin_shared.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/deferred_mixin_test.dart
diff --git a/tests/language/deferred_mixin_test.dart b/tests/language/deferred_mixin_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..11a69a3cf8fff860105ef29ae2e33f034f784abd
--- /dev/null
+++ b/tests/language/deferred_mixin_test.dart
@@ -0,0 +1,40 @@
+// Copyright (c) 2014, 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';
+import 'package:async_helper/async_helper.dart';
+
+import "deferred_mixin_lib1.dart" deferred as lib1;
+import "deferred_mixin_lib2.dart" deferred as lib2;
+
+class NonDeferredMixin {
+ foo() => "NonDeferredMixin";
+}
+
+class NonDeferredMixin1 {
+ foo() => "NonDeferredMixin1";
+}
+
+class NonDeferredMixin2 {
+ foo() => "NonDeferredMixin2";
+}
+
+main() {
+ Expect.equals("NonDeferredMixin", new NonDeferredMixin().foo());
+ Expect.equals("NonDeferredMixin1", new NonDeferredMixin1().foo());
+ Expect.equals("NonDeferredMixin2", new NonDeferredMixin2().foo());
+ asyncStart();
+ lib1.loadLibrary().then((_) {
+ Expect.equals("lib1.Mixin", new lib1.Mixin().foo());
+ Expect.equals("A with NonDeferredMixin", new lib1.A().foo());
+ Expect.equals("B with lib1.Mixin", new lib1.B().foo());
+ Expect.equals("C with NonDeferredMixin1", new lib1.C().foo());
+ Expect.equals("D with lib1.Mixin", new lib1.D().foo());
+ Expect.equals("E with SharedMixin", new lib1.E().foo());
+ lib2.loadLibrary().then((_) {
+ Expect.equals("lib2.A with SharedMixin", new lib2.A().foo());
+ asyncEnd();
+ });
+ });
+}
« no previous file with comments | « tests/language/deferred_mixin_shared.dart ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698