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

Side by Side Diff: tests/standalone/io/directory_uri_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import "package:async_helper/async_helper.dart"; 7 import "package:async_helper/async_helper.dart";
8 import "package:expect/expect.dart"; 8 import "package:expect/expect.dart";
9 9
10 void testFromUri() { 10 void testFromUri() {
(...skipping 15 matching lines...) Expand all
26 new Directory.fromUri(Uri.base.resolve('from_uri')).existsSync()); 26 new Directory.fromUri(Uri.base.resolve('from_uri')).existsSync());
27 Directory.current = originalWorkingDirectory; 27 Directory.current = originalWorkingDirectory;
28 dir.deleteSync(); 28 dir.deleteSync();
29 temp.deleteSync(recursive: true); 29 temp.deleteSync(recursive: true);
30 asyncEnd(); 30 asyncEnd();
31 }); 31 });
32 } 32 }
33 33
34 void testFromUriUnsupported() { 34 void testFromUriUnsupported() {
35 Expect.throws( 35 Expect.throws(
36 () => new Directory.fromUri( 36 () =>
37 Uri.parse('http://localhost:8080/index.html')), 37 new Directory.fromUri(Uri.parse('http://localhost:8080/index.html')),
38 (e) => e is UnsupportedError); 38 (e) => e is UnsupportedError);
39 Expect.throws( 39 Expect.throws(
40 () => new Directory.fromUri(Uri.parse('ftp://localhost/tmp/xxx')), 40 () => new Directory.fromUri(Uri.parse('ftp://localhost/tmp/xxx')),
41 (e) => e is UnsupportedError); 41 (e) => e is UnsupportedError);
42 Expect.throws(() => new Directory.fromUri(Uri.parse('name#fragment')), 42 Expect.throws(() => new Directory.fromUri(Uri.parse('name#fragment')),
43 (e) => e is UnsupportedError); 43 (e) => e is UnsupportedError);
44 } 44 }
45 45
46 void main() { 46 void main() {
47 testFromUri(); 47 testFromUri();
48 testFromUriUnsupported(); 48 testFromUriUnsupported();
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698