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

Side by Side Diff: tests/standalone/regress_28854_1_test.dart

Issue 2750193002: Fix for issue 28854. (Closed)
Patch Set: Adjust status file for dartium as the test will fail because Isolate.spawn is used. Created 3 years, 9 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
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/standalone/regress_28854_2_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4 //
5 library regress;
6
7 import 'dart:isolate';
8
9 abstract class N {
10
11 }
12
13 class J extends N {
14 final String s;
15 J(this.s);
16 }
17
18 class K extends N {
19 final int i;
20 K(this.i);
21 }
22
23 void isolate(SendPort port) {
24 port.send(N);
25 port.send(new J("8" * 4));
26 for (int i=0; i<80000; i++) {
27 port.send(new K(i));
28 }
29 port.send('done');
30 }
31
32 main() async {
33 var recv = new RawReceivePort();
34 recv.handler = (k) {
35 if (k is J) print(k.s.length);
36 if (k is String) {
37 print(k);
38 recv.close();
39 }
40 };
41 var iso = await Isolate.spawn(isolate, recv.sendPort);
42 }
43
OLDNEW
« no previous file with comments | « runtime/vm/snapshot.cc ('k') | tests/standalone/regress_28854_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698