Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Side by Side Diff: pkg/analyzer/test/generated/java_io_test.dart

Issue 485773002: Remove check for relative pathin java_io_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.java_io_test; 8 library engine.java_io_test;
9 9
10 import 'package:analyzer/src/generated/java_io.dart'; 10 import 'package:analyzer/src/generated/java_io.dart';
(...skipping 19 matching lines...) Expand all
30 tempDir.deleteSync(recursive: true); 30 tempDir.deleteSync(recursive: true);
31 } 31 }
32 }); 32 });
33 test('forRelative', () { 33 test('forRelative', () {
34 var tempDir = Directory.systemTemp.createTempSync('java_io_test'); 34 var tempDir = Directory.systemTemp.createTempSync('java_io_test');
35 try { 35 try {
36 String tempPath = normalize(absolute(tempDir.path)); 36 String tempPath = normalize(absolute(tempDir.path));
37 String path = join(tempPath, 'foo.dart'); 37 String path = join(tempPath, 'foo.dart');
38 expect(isAbsolute(path), isTrue); 38 expect(isAbsolute(path), isTrue);
39 // prepare a relative path 39 // prepare a relative path
40 // We should not check that "relPath" is actually relative -
41 // it may be not on Windows, if "temp" is on other disk.
40 String relPath = relative(path); 42 String relPath = relative(path);
41 expect(isAbsolute(relPath), isFalse);
42 // test that toURI() returns an absolute URI 43 // test that toURI() returns an absolute URI
43 Uri uri = new JavaFile(relPath).toURI(); 44 Uri uri = new JavaFile(relPath).toURI();
44 expect(uri.isAbsolute, isTrue); 45 expect(uri.isAbsolute, isTrue);
45 expect(uri.scheme, 'file'); 46 expect(uri.scheme, 'file');
46 } finally { 47 } finally {
47 tempDir.deleteSync(recursive: true); 48 tempDir.deleteSync(recursive: true);
48 } 49 }
49 }); 50 });
50 }); 51 });
51 }); 52 });
52 } 53 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698