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

Side by Side Diff: utils/tests/pub/test_pub.dart

Issue 11867024: Move some core classes to collection library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with bug number. Created 7 years, 11 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
« no previous file with comments | « utils/pub/yaml/yaml.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /// Test infrastructure for testing pub. Unlike typical unit tests, most pub 5 /// Test infrastructure for testing pub. Unlike typical unit tests, most pub
6 /// tests are integration tests that stage some stuff on the file system, run 6 /// tests are integration tests that stage some stuff on the file system, run
7 /// pub, and then validate the results. This library provides an API to build 7 /// pub, and then validate the results. This library provides an API to build
8 /// tests like that. 8 /// tests like that.
9 library test_pub; 9 library test_pub;
10 10
11 import 'dart:async'; 11 import 'dart:async';
12 import 'dart:collection' show Queue;
12 import 'dart:io'; 13 import 'dart:io';
13 import 'dart:json' as json; 14 import 'dart:json' as json;
14 import 'dart:math'; 15 import 'dart:math';
15 import 'dart:uri'; 16 import 'dart:uri';
16 17
17 import '../../../pkg/oauth2/lib/oauth2.dart' as oauth2; 18 import '../../../pkg/oauth2/lib/oauth2.dart' as oauth2;
18 import '../../../pkg/path/lib/path.dart' as path; 19 import '../../../pkg/path/lib/path.dart' as path;
19 import '../../../pkg/unittest/lib/unittest.dart'; 20 import '../../../pkg/unittest/lib/unittest.dart';
20 import '../../../pkg/http/lib/testing.dart'; 21 import '../../../pkg/http/lib/testing.dart';
21 import '../../lib/file_system.dart' as fs; 22 import '../../lib/file_system.dart' as fs;
(...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 /// calling [completion] is unnecessary. 1540 /// calling [completion] is unnecessary.
1540 void expectLater(Future actual, matcher, {String reason, 1541 void expectLater(Future actual, matcher, {String reason,
1541 FailureHandler failureHandler, bool verbose: false}) { 1542 FailureHandler failureHandler, bool verbose: false}) {
1542 _schedule((_) { 1543 _schedule((_) {
1543 return actual.then((value) { 1544 return actual.then((value) {
1544 expect(value, matcher, reason: reason, failureHandler: failureHandler, 1545 expect(value, matcher, reason: reason, failureHandler: failureHandler,
1545 verbose: false); 1546 verbose: false);
1546 }); 1547 });
1547 }); 1548 });
1548 } 1549 }
OLDNEW
« no previous file with comments | « utils/pub/yaml/yaml.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698