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

Unified Diff: utils/pub/directory_tree.dart

Issue 11442068: A few small changes to the "pub lish" confirmation UI. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix tests. Created 8 years 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 | utils/tests/pub/directory_tree_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/directory_tree.dart
diff --git a/utils/pub/directory_tree.dart b/utils/pub/directory_tree.dart
index f5baa62376a5257a4ace59792da55917ebc616bd..696c41842f208b9fba3c596592d44a45dce71f61 100644
--- a/utils/pub/directory_tree.dart
+++ b/utils/pub/directory_tree.dart
@@ -50,7 +50,7 @@ import 'path.dart' as path;
/// |-- absolute_test.dart
/// |-- all_test.dart
/// |-- basename_test.dart
-/// | (7 more...)
+/// | (7 more...)
/// |-- path_windows_test.dart
/// |-- relative_test.dart
/// '-- split_test.dart
@@ -109,7 +109,7 @@ void _draw(StringBuffer buffer, String prefix, bool isLast,
_draw(buffer, '$prefix$childPrefix', isLastChild, child, children[child]);
}
- if (childNames.length <= 10) {
+ if (name == null || childNames.length <= 10) {
// Not too many, so show all the children.
for (var i = 0; i < childNames.length; i++) {
_drawChild(i == childNames.length - 1, childNames[i]);
@@ -123,7 +123,7 @@ void _draw(StringBuffer buffer, String prefix, bool isLast,
// Elide the middle ones.
buffer.add(prefix);
buffer.add(_getPrefix(name == null, isLast));
- buffer.add('| (${childNames.length - 6} more...)\n');
+ buffer.add('| (${childNames.length - 6} more...)\n');
// Show the last few.
_drawChild(false, childNames[childNames.length - 3]);
« no previous file with comments | « no previous file | utils/tests/pub/directory_tree_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698