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

Side by Side Diff: frog/tests/frog/src/NodeConsoleHelper.dart

Issue 10037027: unittest step2: bye bye to multiple entrypoints for unittest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « frog/tests/frog/src/NodeBufferTest.dart ('k') | frog/tests/frog/src/NodeConsoleTest.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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #library('ConsoleHelper'); 5 #library('ConsoleHelper');
6 6
7 #import('unittest_node.dart');
8 #import('../../../lib/node/node.dart'); 7 #import('../../../lib/node/node.dart');
9 #import('NodeTestHelper.dart'); 8 #import('NodeTestHelper.dart');
10 9
11 // This program is designed to be executed as a sub-process by NodeConsoleTest 10 // This program is designed to be executed as a sub-process by NodeConsoleTest
12 // (Node doesn't expose "dup" or "dup2", so this is the only way to capture 11 // (Node doesn't expose "dup" or "dup2", so this is the only way to capture
13 // the output of stderr, stdout during testing.) 12 // the output of stderr, stdout during testing.)
14 13
15 main() { 14 main() {
16 printTestOutputBanner(); 15 printTestOutputBanner();
17 var argv = process.argv; 16 var argv = process.argv;
(...skipping 29 matching lines...) Expand all
47 case 'assert-false': 46 case 'assert-false':
48 console.assert(false); 47 console.assert(false);
49 break; 48 break;
50 case 'assert-false2': 49 case 'assert-false2':
51 console.assert(false, "assert-false2"); 50 console.assert(false, "assert-false2");
52 break; 51 break;
53 default: 52 default:
54 console.error("unknown argument. argv=${argv}"); 53 console.error("unknown argument. argv=${argv}");
55 break; 54 break;
56 } 55 }
57 } 56 }
OLDNEW
« no previous file with comments | « frog/tests/frog/src/NodeBufferTest.dart ('k') | frog/tests/frog/src/NodeConsoleTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698