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

Unified Diff: tests/isolate/issue_24243_child2_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: skip-test 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
« no previous file with comments | « tests/isolate/issue_24243_child1_isolate.dart ('k') | tests/isolate/issue_24243_child3_isolate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/isolate/issue_24243_child2_isolate.dart
diff --git a/tests/isolate/issue_21398_child_isolate.dart b/tests/isolate/issue_24243_child2_isolate.dart
similarity index 57%
copy from tests/isolate/issue_21398_child_isolate.dart
copy to tests/isolate/issue_24243_child2_isolate.dart
index 2d7b23cfdcb42cad5818d44a216902c61c242309..019665377073f1c49c0f45568fd92f0f7627244b 100644
--- a/tests/isolate/issue_21398_child_isolate.dart
+++ b/tests/isolate/issue_24243_child2_isolate.dart
@@ -3,18 +3,16 @@
// BSD-style license that can be found in the LICENSE file.
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 map0 = <int, String>{1:'one', 2:'two', 3:'three'};
+ var map1 = <int, String>{4:'four', 5:'five', 6:'six'};
+ var map2 = <int, String>{7:'seven', 8:'eight', 9:'nine'};
+ var map = new Map<int, Map<int, String>>.from({0:map0, 1:map1, 2:map2});
+ sendPort.send(map);
} catch(error) {
- Expect.isTrue(error is ArgumentError);
sendPort.send("Invalid Argument(s).");
}
}
« no previous file with comments | « tests/isolate/issue_24243_child1_isolate.dart ('k') | tests/isolate/issue_24243_child3_isolate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698