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

Side by Side Diff: tests/lib/async/deferred/deferred_in_isolate_test.dart

Issue 1133983002: Move isolate tests to lib/isolate. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix merge Created 5 years, 7 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
OLDNEW
(Empty)
1 import 'dart:isolate';
2 import 'dart:async';
3 import 'package:unittest/unittest.dart';
4
5 import 'deferred_in_isolate_lib.dart' deferred as lib;
6
7 loadDeferred(port) {
8 lib.loadLibrary().then((_) {
9 port.send(lib.f());
10 });
11 }
12
13 main() {
14 test("Deferred loading in isolate", () {
15 ReceivePort port = new ReceivePort();
16 port.first.then(expectAsync((msg) {
17 expect(msg, equals("hi"));
18 }));
19 Isolate.spawn(loadDeferred, port.sendPort);
20 });
21 }
OLDNEW
« no previous file with comments | « tests/lib/async/deferred/deferred_in_isolate_lib.dart ('k') | tests/lib/async/deferred/deferred_library.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698