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

Unified Diff: tests/standalone/package/sibling_isolate.dart

Issue 11195017: Allow package: imports inside isolates (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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: tests/standalone/package/sibling_isolate.dart
diff --git a/tests/compiler/dart2js_extra/regress/4434_test.dart b/tests/standalone/package/sibling_isolate.dart
similarity index 51%
copy from tests/compiler/dart2js_extra/regress/4434_test.dart
copy to tests/standalone/package/sibling_isolate.dart
index 0fe32948358ee12488e69ae9ebea30bd43ddd597..0ad26c2262c1b454dce25377f24fb35ca29aa516 100644
--- a/tests/compiler/dart2js_extra/regress/4434_test.dart
+++ b/tests/standalone/package/sibling_isolate.dart
@@ -1,14 +1,17 @@
+
// Copyright (c) 2012, 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.
-#library("lib_b");
-
-#import("4434_lib.dart");
+library sibling_isolate;
-class B extends A { }
+import 'package:shared.dart';
siva 2012/10/17 17:26:23 I think you should import this with a prefix and t
justinfagnani 2012/10/17 18:11:56 Done.
+import 'dart:isolate';
+// This file is spawned from package_isolate_test.dart
main() {
- B b = new B();
- b.x(b);
+ output = 'success';
+ port.receive((msg, replyTo) {
+ replyTo.send(output);
+ });
}

Powered by Google App Engine
This is Rietveld 408576698