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

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

Issue 725143004: Format and sort analyzer and analysis_server packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 1 month 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
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 'dart:io';
11
10 import 'package:analyzer/src/generated/java_io.dart'; 12 import 'package:analyzer/src/generated/java_io.dart';
13 import 'package:path/path.dart';
11 import 'package:unittest/unittest.dart'; 14 import 'package:unittest/unittest.dart';
12 import 'package:path/path.dart';
13 import 'dart:io';
14 15
15 main() { 16 main() {
16 group('JavaFile', () { 17 group('JavaFile', () {
17 group('toURI', () { 18 group('toURI', () {
18 test('forAbsolute', () { 19 test('forAbsolute', () {
19 var tempDir = Directory.systemTemp.createTempSync('java_io_test'); 20 var tempDir = Directory.systemTemp.createTempSync('java_io_test');
20 try { 21 try {
21 String tempPath = normalize(absolute(tempDir.path)); 22 String tempPath = normalize(absolute(tempDir.path));
22 String path = join(tempPath, 'foo.dart'); 23 String path = join(tempPath, 'foo.dart');
23 // we use an absolute path 24 // we use an absolute path
(...skipping 20 matching lines...) Expand all
44 Uri uri = new JavaFile(relPath).toURI(); 45 Uri uri = new JavaFile(relPath).toURI();
45 expect(uri.isAbsolute, isTrue); 46 expect(uri.isAbsolute, isTrue);
46 expect(uri.scheme, 'file'); 47 expect(uri.scheme, 'file');
47 } finally { 48 } finally {
48 tempDir.deleteSync(recursive: true); 49 tempDir.deleteSync(recursive: true);
49 } 50 }
50 }); 51 });
51 }); 52 });
52 }); 53 });
53 } 54 }
OLDNEW
« no previous file with comments | « pkg/analyzer/test/generated/java_core_test.dart ('k') | pkg/analyzer/test/generated/non_error_resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698