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

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

Issue 169893003: Another round of cleanups for http://www.dartbug.com/15922 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
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 // 10 //
11 // When issue14236_test.dart fails, you must regenerate it using the VM 11 // When issue14236_test.dart fails, you must regenerate it using the VM
12 // with your changes. Notes on regenerating: 12 // with your changes. You should understand what in your change makes
13 // regeneration of the snapshot necessary.
14 // Steps for regenerating:
13 // 1) Swap the test and main functions below. 15 // 1) Swap the test and main functions below.
14 // 2) $ dart --snapshot=issue14236_test.dart issue14236_source.dart 16 // 2) $ ./xcodebuild/DebugIA32/dart --package-root=./xcodebuild/DebugIA32/packag es --snapshot=tests/standalone/issue14236_new_test.dart tests/standalone/issue14 236_source.dart
Anders Johnsen 2014/02/18 10:02:34 Long line :)
siva 2014/02/19 00:34:04 issue14236_test.dart
Ivan Posva 2014/02/19 04:04:23 Thanks! This will make the line shorter too... ;-)
siva 2014/02/19 06:01:20 One more thing I forgot to mention, the xcodebuild
15 // 3) Undo changes in 1. 17 // 3) Undo changes in 1.
16 18
17 library test.issue14236; 19 library test.issue14236;
18 import "dart:isolate"; 20 import "dart:isolate";
19 import "package:expect/expect.dart"; 21 import "package:expect/expect.dart";
20 import "package:async_helper/async_helper.dart"; 22 import "package:async_helper/async_helper.dart";
21 23
22 /* 24 /*
23 test(SendPort replyTo) { 25 test(SendPort replyTo) {
24 replyTo.send("from Isolate"); 26 replyTo.send("from Isolate");
25 } 27 }
26 28
27 main() { 29 main() {
28 asyncStart(); 30 asyncStart();
29 ReceivePort port = new ReceivePort(); 31 ReceivePort port = new ReceivePort();
30 Isolate.spawn(test, port.sendPort); 32 Isolate.spawn(test, port.sendPort);
31 port.first.then((msg) { 33 port.first.then((msg) {
32 Expect.equals("from Isolate", msg); 34 Expect.equals("from Isolate", msg);
33 asyncEnd(); 35 asyncEnd();
34 }); 36 });
35 } 37 }
36 */ 38 */
37 39
38 test() { 40 test() {
39 Expect.fail("Don't expect this to run at all"); 41 Expect.fail("Don't expect this to run at all");
40 } 42 }
41 main() { 43 main() {
42 Expect.fail("Don't expect this to run at all"); 44 Expect.fail("Don't expect this to run at all");
43 } 45 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698