Chromium Code Reviews| Index: utils/tests/pub/test_pub.dart |
| diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart |
| index 63301f40a51d2a9cb27183d31f0323ae3900401e..b84a7aa658dacf9f9ff1d0abefdcbdea2e738fb7 100644 |
| --- a/utils/tests/pub/test_pub.dart |
| +++ b/utils/tests/pub/test_pub.dart |
| @@ -734,7 +734,9 @@ void _validateOutputString(List<String> failures, String pipe, |
| // Strip off the last line. This lets us have expected multiline strings |
| // where the closing ''' is on its own line. It also fixes '' expected output |
| // to expect zero lines of output, not a single empty line. |
| - expected.removeLast(); |
| + if (expected.last.trim() == '') { |
|
nweiz
2013/02/13 00:23:32
Are there cases where we're not printing trailing
Bob Nystrom
2013/02/13 00:52:58
I don't think so. The 'if' here allows you to vali
|
| + expected.removeLast(); |
| + } |
| var results = []; |
| var failed = false; |