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

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

Issue 53393004: Add notes to issue14236_source.dart on regenerating (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // This is the original dart program that was used to generate the snapshot 5 // This is the original dart program that was used to generate the snapshot
6 // in file issue14236_test.dart 6 // in file issue14236_test.dart
7 // The original test/main has been commented out and we have a test/main which 7 // The original test/main has been commented out and we have a test/main which
8 // throws an error to ensure that this file is not executed as part of the 8 // throws an error to ensure that this file is not executed as part of the
9 // test. 9 // test.
10 //
11 // When issue14236_test.dart fails, you must regenerate it using the VM
12 // with your changes. Notes on regenerating:
13 // 1) Swap the test and main functions below.
14 // 2) $ dart --snapshot=issue14236_test.dart issue14236_source.dart
15 // 3) Undo changes in 1.
10 16
11 library test.issue14236; 17 library test.issue14236;
12 import "dart:isolate"; 18 import "dart:isolate";
13 import "package:expect/expect.dart"; 19 import "package:expect/expect.dart";
14 import "package:async_helper/async_helper.dart"; 20 import "package:async_helper/async_helper.dart";
15 21
16 /* 22 /*
17 test(SendPort replyTo) { 23 test(SendPort replyTo) {
18 replyTo.send("from Isolate"); 24 replyTo.send("from Isolate");
19 } 25 }
20 26
21 main() { 27 main() {
22 asyncStart(); 28 asyncStart();
23 ReceivePort port = new ReceivePort(); 29 ReceivePort port = new ReceivePort();
24 Isolate.spawn(test, port.sendPort); 30 Isolate.spawn(test, port.sendPort);
25 port.first.then((msg) { 31 port.first.then((msg) {
26 Expect.equals("from Isolate", msg); 32 Expect.equals("from Isolate", msg);
27 asyncEnd(); 33 asyncEnd();
28 }); 34 });
29 } 35 }
30 */ 36 */
31 37
32 test() { 38 test() {
33 Expect.fail("Don't expect this to run at all"); 39 Expect.fail("Don't expect this to run at all");
34 } 40 }
35 main() { 41 main() {
36 Expect.fail("Don't expect this to run at all"); 42 Expect.fail("Don't expect this to run at all");
37 } 43 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698