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

Side by Side Diff: third_party/pkg/barback-0.13.0/test/too_many_open_files_test.dart

Issue 291843011: Run pub tests against older versions of barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 6 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 unified diff | Download patch | Annotate | Revision Log
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 library barback.test.too_many_open_files_test; 5 library barback.test.too_many_open_files_test;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:barback/barback.dart'; 10 import 'package:barback/barback.dart';
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 var futures = []; 46 var futures = [];
47 for (var i = 0; i < 1000; i++) { 47 for (var i = 0; i < 1000; i++) {
48 var asset = new Asset.fromPath(id, filePath); 48 var asset = new Asset.fromPath(id, filePath);
49 futures.add(assetHandler(asset)); 49 futures.add(assetHandler(asset));
50 } 50 }
51 51
52 expect(Future.wait(futures).whenComplete(() { 52 expect(Future.wait(futures).whenComplete(() {
53 new Directory(tempDir).delete(recursive: true); 53 new Directory(tempDir).delete(recursive: true);
54 }), completes); 54 }), completes);
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698