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

Side by Side Diff: runtime/vm/snapshot_test.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | samples/ui_lib/util/DateUtils.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 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. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #import("dart:isolate"); 5 #import("dart:isolate");
6 6
7 class Fields { 7 class Fields {
8 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {} 8 Fields(int i, int j) : fld1 = i, fld2 = j, fld5 = true {}
9 int fld1; 9 int fld1;
10 final int fld2; 10 final int fld2;
(...skipping 1394 matching lines...) Expand 10 before | Expand all | Expand 10 after
1405 Expect.equals(11, count); 1405 Expect.equals(11, count);
1406 local.close(); 1406 local.close();
1407 return; 1407 return;
1408 } 1408 }
1409 1409
1410 Expect.equals((count - 1) * 2, message); 1410 Expect.equals((count - 1) * 2, message);
1411 remote.send(count++, reply); 1411 remote.send(count++, reply);
1412 if (count == 10) { 1412 if (count == 10) {
1413 remote.send(-1, reply); 1413 remote.send(-1, reply);
1414 } 1414 }
1415 }, count: 11)); 1415 }, 11));
1416 remote.send(count++, reply); 1416 remote.send(count++, reply);
1417 }); 1417 });
1418 } 1418 }
1419 1419
1420 1420
1421 // --------------------------------------------------------------------------- 1421 // ---------------------------------------------------------------------------
1422 // tests/isolate/mandel_isolate_test.dart 1422 // tests/isolate/mandel_isolate_test.dart
1423 // --------------------------------------------------------------------------- 1423 // ---------------------------------------------------------------------------
1424 1424
1425 const TERMINATION_MESSAGE = -1; 1425 const TERMINATION_MESSAGE = -1;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
1548 void processLines() { 1548 void processLines() {
1549 port.receive((message, SendPort replyTo) { 1549 port.receive((message, SendPort replyTo) {
1550 if (message == TERMINATION_MESSAGE) { 1550 if (message == TERMINATION_MESSAGE) {
1551 assert(replyTo == null); 1551 assert(replyTo == null);
1552 port.close(); 1552 port.close();
1553 } else { 1553 } else {
1554 replyTo.send(processLine(message), null); 1554 replyTo.send(processLine(message), null);
1555 } 1555 }
1556 }); 1556 });
1557 } 1557 }
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | samples/ui_lib/util/DateUtils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698