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

Side by Side Diff: tests/isolate/spawn_uri_exported_main_test.dart

Issue 864233003: Fix http://dartbug.com/22115 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/isolate/spawn_uri_exported_main_lib.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 import "dart:async";
2 import "dart:isolate";
3 import "package:expect/expect.dart";
4
5 main() {
6 print("Spawning isolate.");
7 var t = new Timer(new Duration(seconds:5), () {
8 Expect.fail("Isolate was not spawned successfully.");
9 });
10 var rp = new RawReceivePort();
11 rp.handler = (msg) {
12 print("Spawned main called.");
13 Expect.equals(msg, 50);
14 rp.close();
15 };
16 Isolate.spawnUri(Uri.parse("spawn_uri_exported_main.dart"), null, rp.sendPort) .then((_) {
17 print("Loaded");
18 t.cancel();
19 });
20 }
OLDNEW
« no previous file with comments | « tests/isolate/spawn_uri_exported_main_lib.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698