| 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 library engine.java_io_test; | 5 library analyzer.test.generated.java_io_test; |
| 6 | 6 |
| 7 import 'package:analyzer/src/generated/java_io.dart'; | 7 import 'package:analyzer/src/generated/java_io.dart'; |
| 8 import 'package:unittest/unittest.dart'; | 8 import 'package:unittest/unittest.dart'; |
| 9 | 9 |
| 10 import '../utils.dart'; | 10 import '../utils.dart'; |
| 11 | 11 |
| 12 main() { | 12 main() { |
| 13 initializeTestEnvironment(); | 13 initializeTestEnvironment(); |
| 14 group('JavaFile', () { | 14 group('JavaFile', () { |
| 15 group('toURI', () { | 15 group('toURI', () { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 34 // it may be not on Windows, if "temp" is on other disk. | 34 // it may be not on Windows, if "temp" is on other disk. |
| 35 String relPath = JavaFile.pathContext.relative(path); | 35 String relPath = JavaFile.pathContext.relative(path); |
| 36 // test that toURI() returns an absolute URI | 36 // test that toURI() returns an absolute URI |
| 37 Uri uri = new JavaFile(relPath).toURI(); | 37 Uri uri = new JavaFile(relPath).toURI(); |
| 38 expect(uri.isAbsolute, isTrue); | 38 expect(uri.isAbsolute, isTrue); |
| 39 expect(uri.scheme, 'file'); | 39 expect(uri.scheme, 'file'); |
| 40 }); | 40 }); |
| 41 }); | 41 }); |
| 42 }); | 42 }); |
| 43 } | 43 } |
| OLD | NEW |