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

Unified Diff: tests/standalone/issue14236_source.dart

Issue 35393003: Retain script path of parent isolate when spawnFunction is called so that (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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/issue14236_source.dart
===================================================================
--- tests/standalone/issue14236_source.dart (revision 0)
+++ tests/standalone/issue14236_source.dart (revision 0)
@@ -0,0 +1,31 @@
+// 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.
+//
+// This is the original dart program that was used to generate the snapshot
+// in file issue14236_test.dart
+// The original main has been commented out and we have a main which
+// throws an error to ensure that this file is not executed as part of the
+// test.
+
+library test.issue14236;
+import 'dart:isolate';
+import "package:expect/expect.dart";
+
+test() {
+ port.receive((msg, reply) => reply.send(msg));
+}
+
+/*
+main() {
+ ReceivePort port = new ReceivePort();
+ port.receive((msg, reply) => port.close());
+
+ SendPort s = spawnFunction(test);
+ s.send('hi', port.toSendPort());
+}
+*/
+
+main() {
+ Expect.fail("Don't expect this to run at all");
+}

Powered by Google App Engine
This is Rietveld 408576698