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

Side by Side Diff: pkg/analyzer/test/file_system/physical_resource_provider_test.dart

Issue 372763003: Move file_system libraries into 'analyzer'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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
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 library test.physical.resource.provider; 5 library test.physical_file_system;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io' as io; 8 import 'dart:io' as io;
9 9
10 import 'package:analysis_server/src/resource.dart'; 10 import 'package:analyzer/file_system/file_system.dart';
11 import 'package:analyzer/file_system/physical_file_system.dart';
11 import 'package:analyzer/src/generated/source_io.dart'; 12 import 'package:analyzer/src/generated/source_io.dart';
12 import 'package:path/path.dart'; 13 import 'package:path/path.dart';
13 import 'package:unittest/unittest.dart'; 14 import 'package:unittest/unittest.dart';
14 import 'package:watcher/watcher.dart'; 15 import 'package:watcher/watcher.dart';
15 16
17
18 var _isFile = new isInstanceOf<File>();
19 var _isFolder = new isInstanceOf<Folder>();
20
21
16 main() { 22 main() {
17 groupSep = ' | '; 23 groupSep = ' | ';
18 24
19 group('PhysicalResourceProvider', () { 25 group('PhysicalResourceProvider', () {
20 io.Directory tempDirectory; 26 io.Directory tempDirectory;
21 String tempPath; 27 String tempPath;
22 28
23 setUp(() { 29 setUp(() {
24 tempDirectory = io.Directory.systemTemp.createTempSync('test_resource'); 30 tempDirectory = io.Directory.systemTemp.createTempSync('test_resource');
25 tempPath = tempDirectory.absolute.path; 31 tempPath = tempDirectory.absolute.path;
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 expect(folder.canonicalizePath('baz'), equals(join(path, 'baz'))); 286 expect(folder.canonicalizePath('baz'), equals(join(path, 'baz')));
281 expect(folder.canonicalizePath(path2), equals(path2)); 287 expect(folder.canonicalizePath(path2), equals(path2));
282 expect(folder.canonicalizePath(join('..', 'folder2')), equals(path2)); 288 expect(folder.canonicalizePath(join('..', 'folder2')), equals(path2));
283 expect(folder.canonicalizePath(join(path2, '..', 'folder3')), equals(p ath3)); 289 expect(folder.canonicalizePath(join(path2, '..', 'folder3')), equals(p ath3));
284 expect(folder.canonicalizePath(join('.', 'baz')), equals(join(path, 'b az'))); 290 expect(folder.canonicalizePath(join('.', 'baz')), equals(join(path, 'b az')));
285 expect(folder.canonicalizePath(join(path2, '.', 'baz')), equals(join(p ath2, 'baz'))); 291 expect(folder.canonicalizePath(join(path2, '.', 'baz')), equals(join(p ath2, 'baz')));
286 }); 292 });
287 }); 293 });
288 }); 294 });
289 } 295 }
290
291 var _isFile = new isInstanceOf<File>();
292 var _isFolder = new isInstanceOf<Folder>();
293 var _isMemoryResourceException = new isInstanceOf<MemoryResourceException>();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698