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

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

Issue 1139793002: Fix status file and add accidentally removed test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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';
Lasse Reichstein Nielsen 2015/05/11 20:11:14 Add copyright header. Consider adding library tag
2 import 'dart:async';
3 import 'package:unittest/unittest.dart';
4
5 import 'deferred_in_isolate2_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

Powered by Google App Engine
This is Rietveld 408576698