| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 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. |
| 4 |
| 5 #import("testing/dart/version.dart"); |
| 6 |
| 7 void main() { |
| 8 Version version = new Version("tools/VERSION"); |
| 9 Future f = version.getVersion(); |
| 10 f.then((currentVersion) { |
| 11 print(currentVersion); |
| 12 }); |
| 13 f.handleException((e) { |
| 14 print("Could not create version number, failed with: $e"); |
| 15 return true; |
| 16 }); |
| 17 } |
| OLD | NEW |