OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |