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

Unified Diff: pkg/http_server/test/virtual_directory_test.dart

Issue 18050017: Don't test links on windows, for http_server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/http_server/test/virtual_directory_test.dart
diff --git a/pkg/http_server/test/virtual_directory_test.dart b/pkg/http_server/test/virtual_directory_test.dart
index c020c3f2c831dc78eb2fd3f30c581cd784e0cf84..ca7094883dc8ac1975a6414cc4030a6d1bf1fa53 100644
--- a/pkg/http_server/test/virtual_directory_test.dart
+++ b/pkg/http_server/test/virtual_directory_test.dart
@@ -171,34 +171,36 @@ void main() {
}), completion(contains('Index of /')));
});
- test('recursive-link', () {
- expect(HttpServer.bind('localhost', 0).then((server) {
- var dir = new Directory('').createTempSync();
- var link = new Link('${dir.path}/recursive')..createSync('.');
- var virDir = new VirtualDirectory(dir.path);
- virDir.allowDirectoryListing = true;
+ if (!Platform.isWindows) {
+ test('recursive-link', () {
+ expect(HttpServer.bind('localhost', 0).then((server) {
+ var dir = new Directory('').createTempSync();
+ var link = new Link('${dir.path}/recursive')..createSync('.');
+ var virDir = new VirtualDirectory(dir.path);
+ virDir.allowDirectoryListing = true;
- virDir.serve(server);
+ virDir.serve(server);
- return Future.wait([
- getAsString(server.port, '/').then(
- (s) => s.contains('recursive/')),
- getAsString(server.port, '/').then(
- (s) => !s.contains('../')),
- getAsString(server.port, '/').then(
- (s) => s.contains('Index of /')),
- getAsString(server.port, '/recursive').then(
- (s) => s.contains('recursive/')),
- getAsString(server.port, '/recursive').then(
- (s) => s.contains('../')),
- getAsString(server.port, '/recursive').then(
- (s) => s.contains('Index of /recursive'))])
- .whenComplete(() {
- server.close();
- dir.deleteSync(recursive: true);
- });
- }), completion(equals([true, true, true, true, true, true])));
- });
+ return Future.wait([
+ getAsString(server.port, '/').then(
+ (s) => s.contains('recursive/')),
+ getAsString(server.port, '/').then(
+ (s) => !s.contains('../')),
+ getAsString(server.port, '/').then(
+ (s) => s.contains('Index of /')),
+ getAsString(server.port, '/recursive').then(
+ (s) => s.contains('recursive/')),
+ getAsString(server.port, '/recursive').then(
+ (s) => s.contains('../')),
+ getAsString(server.port, '/recursive').then(
+ (s) => s.contains('Index of /recursive'))])
+ .whenComplete(() {
+ server.close();
+ dir.deleteSync(recursive: true);
+ });
+ }), completion(equals([true, true, true, true, true, true])));
+ });
+ }
});
group('custom', () {
« 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