| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 code was auto-generated, is not intended to be edited, and is subject to | |
| 6 // significant change. Please see the README file for more information. | |
| 7 | |
| 8 library engine.java_io_test; | 5 library engine.java_io_test; |
| 9 | 6 |
| 10 import 'dart:io'; | 7 import 'dart:io'; |
| 11 | 8 |
| 12 import 'package:analyzer/src/generated/java_io.dart'; | 9 import 'package:analyzer/src/generated/java_io.dart'; |
| 13 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 14 | 11 |
| 15 import '../utils.dart'; | 12 import '../utils.dart'; |
| 16 | 13 |
| 17 main() { | 14 main() { |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 // it may be not on Windows, if "temp" is on other disk. | 36 // it may be not on Windows, if "temp" is on other disk. |
| 40 String relPath = JavaFile.pathContext.relative(path); | 37 String relPath = JavaFile.pathContext.relative(path); |
| 41 // test that toURI() returns an absolute URI | 38 // test that toURI() returns an absolute URI |
| 42 Uri uri = new JavaFile(relPath).toURI(); | 39 Uri uri = new JavaFile(relPath).toURI(); |
| 43 expect(uri.isAbsolute, isTrue); | 40 expect(uri.isAbsolute, isTrue); |
| 44 expect(uri.scheme, 'file'); | 41 expect(uri.scheme, 'file'); |
| 45 }); | 42 }); |
| 46 }); | 43 }); |
| 47 }); | 44 }); |
| 48 } | 45 } |
| OLD | NEW |