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

Side by Side Diff: test/test_pub.dart

Issue 1585513002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/pub.git@master
Patch Set: Created 4 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
« no previous file with comments | « test/snapshot/upgrades_snapshot_test.dart ('k') | test/transcript_test.dart » ('j') | 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) 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 /// Test infrastructure for testing pub. 5 /// Test infrastructure for testing pub.
6 /// 6 ///
7 /// Unlike typical unit tests, most pub tests are integration tests that stage 7 /// Unlike typical unit tests, most pub tests are integration tests that stage
8 /// some stuff on the file system, run pub, and then validate the results. This 8 /// some stuff on the file system, run pub, and then validate the results. This
9 /// library provides an API to build tests like that. 9 /// library provides an API to build tests like that.
10 library test_pub;
11
12 import 'dart:async'; 10 import 'dart:async';
13 import 'dart:convert'; 11 import 'dart:convert';
14 import 'dart:io'; 12 import 'dart:io';
15 import 'dart:math'; 13 import 'dart:math';
16 14
17 import 'package:http/testing.dart'; 15 import 'package:http/testing.dart';
18 import 'package:path/path.dart' as p; 16 import 'package:path/path.dart' as p;
19 import 'package:pub/src/entrypoint.dart'; 17 import 'package:pub/src/entrypoint.dart';
20 import 'package:pub/src/exceptions.dart'; 18 import 'package:pub/src/exceptions.dart';
21 import 'package:pub/src/exit_codes.dart' as exit_codes; 19 import 'package:pub/src/exit_codes.dart' as exit_codes;
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 _lastMatcher.matches(item.last, matchState); 847 _lastMatcher.matches(item.last, matchState);
850 } 848 }
851 849
852 Description describe(Description description) { 850 Description describe(Description description) {
853 return description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]); 851 return description.addAll("(", ", ", ")", [_firstMatcher, _lastMatcher]);
854 } 852 }
855 } 853 }
856 854
857 /// A [StreamMatcher] that matches multiple lines of output. 855 /// A [StreamMatcher] that matches multiple lines of output.
858 StreamMatcher emitsLines(String output) => inOrder(output.split("\n")); 856 StreamMatcher emitsLines(String output) => inOrder(output.split("\n"));
OLDNEW
« no previous file with comments | « test/snapshot/upgrades_snapshot_test.dart ('k') | test/transcript_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698