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

Side by Side Diff: sdk/lib/_internal/pub/test/io_test.dart

Issue 94593002: Hide more TimeoutExceptions in all the files importing pub's io.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 io_test; 5 library io_test;
6 6
7 import 'dart:async'; 7 import 'dart:async' hide TimeoutException;
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:path/path.dart' as path; 10 import 'package:path/path.dart' as path;
11 import 'package:unittest/unittest.dart'; 11 import 'package:unittest/unittest.dart';
12 12
13 import '../lib/src/io.dart'; 13 import '../lib/src/io.dart';
14 import 'test_pub.dart'; 14 import 'test_pub.dart';
15 15
16 main() { 16 main() {
17 initConfig(); 17 initConfig();
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 expect(predicate(symlink2Path), equals(forMultiLevelFileSymlink)); 423 expect(predicate(symlink2Path), equals(forMultiLevelFileSymlink));
424 }), completes); 424 }), completes);
425 }); 425 });
426 } 426 }
427 }); 427 });
428 } 428 }
429 429
430 /// Like [withTempDir], but canonicalizes the path before passing it to [fn]. 430 /// Like [withTempDir], but canonicalizes the path before passing it to [fn].
431 Future withCanonicalTempDir(Future fn(String path)) => 431 Future withCanonicalTempDir(Future fn(String path)) =>
432 withTempDir((temp) => fn(canonicalize(temp))); 432 withTempDir((temp) => fn(canonicalize(temp)));
OLDNEW
« no previous file with comments | « sdk/lib/_internal/pub/test/descriptor/tar.dart ('k') | sdk/lib/_internal/pub/test/test_pub.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698