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

Unified Diff: tests/isolate/issue_24243_child1_isolate.dart

Issue 1343213002: Fix for issue 24243 (allow objects of dart:core and dart:collections to be passed in for now, we ne… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix-comment Created 5 years, 3 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/isolate/issue_24243_child1_isolate.dart
diff --git a/tests/isolate/issue_21398_child_isolate.dart b/tests/isolate/issue_24243_child1_isolate.dart
similarity index 72%
copy from tests/isolate/issue_21398_child_isolate.dart
copy to tests/isolate/issue_24243_child1_isolate.dart
index 2d7b23cfdcb42cad5818d44a216902c61c242309..e092978e1c276f2c251cc3a24617661ea1f495cf 100644
--- a/tests/isolate/issue_21398_child_isolate.dart
+++ b/tests/isolate/issue_24243_child1_isolate.dart
@@ -5,16 +5,15 @@
import 'dart:isolate';
import "package:expect/expect.dart";
-class FromChildIsolate {
- String toString() => 'from child isolate';
-}
-
main(List<String> args, message) {
var sendPort = message;
try {
- sendPort.send(new FromChildIsolate());
+ var l0 = <int>[1, 2, 3];
+ var l1 = <int>[4, 5, 6];
+ var l2 = <int>[7, 8, 9];
+ var l = new List<List<int>>.from([l0, l1, l2]);
koda 2015/09/16 17:41:26 Please avoid "l" as a name; it looks too much like
siva 2015/09/16 18:24:45 Done.
+ sendPort.send(l);
} catch(error) {
- Expect.isTrue(error is ArgumentError);
sendPort.send("Invalid Argument(s).");
}
}

Powered by Google App Engine
This is Rietveld 408576698