| OLD | NEW |
| 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 /** | 5 /// A simple unit test library for running tests on the VM. |
| 6 * A simple unit test library for running tests on the VM. | |
| 7 */ | |
| 8 library unittest.vm_config; | 6 library unittest.vm_config; |
| 9 | 7 |
| 10 import 'dart:async'; | 8 import 'dart:async'; |
| 11 import 'dart:io'; | 9 import 'dart:io'; |
| 12 import 'unittest.dart'; | 10 import 'unittest.dart'; |
| 13 | 11 |
| 14 class VMConfiguration extends SimpleConfiguration { | 12 class VMConfiguration extends SimpleConfiguration { |
| 15 // Color constants used for generating messages. | 13 // Color constants used for generating messages. |
| 16 final String GREEN_COLOR = '\u001b[32m'; | 14 final String GREEN_COLOR = '\u001b[32m'; |
| 17 final String RED_COLOR = '\u001b[31m'; | 15 final String RED_COLOR = '\u001b[31m'; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 exit(status); | 56 exit(status); |
| 59 }); | 57 }); |
| 60 } | 58 } |
| 61 } | 59 } |
| 62 | 60 |
| 63 void useVMConfiguration() { | 61 void useVMConfiguration() { |
| 64 unittestConfiguration = _singleton; | 62 unittestConfiguration = _singleton; |
| 65 } | 63 } |
| 66 | 64 |
| 67 final _singleton = new VMConfiguration(); | 65 final _singleton = new VMConfiguration(); |
| OLD | NEW |