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

Unified Diff: test/formatter_test.dart

Issue 2837143003: Don't dump a stack trace on the user if the formatter had bad output. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/io.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/formatter_test.dart
diff --git a/test/formatter_test.dart b/test/formatter_test.dart
index ddf3b47e1efa10814668555f7242aef975126e16..d71b747ed40967398b9a89dd964a524ae7664ec6 100644
--- a/test/formatter_test.dart
+++ b/test/formatter_test.dart
@@ -132,12 +132,12 @@ void main() {
});
});
- test('throws a FormatterException on non-whitespace changes', () {
+ test('throws an UnexpectedOutputException on non-whitespace changes', () {
// Use an invalid line ending character to ensure the formatter will
// attempt to make non-whitespace changes.
var formatter = new DartFormatter(lineEnding: '%');
expect(() => formatter.format("var i = 1;"),
- throwsA(new isInstanceOf<FormatException>()));
+ throwsA(new isInstanceOf<UnexpectedOutputException>()));
});
}
« no previous file with comments | « lib/src/io.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698