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

Unified Diff: tests/corelib/error_stack_trace_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files 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
Index: tests/corelib/error_stack_trace_test.dart
diff --git a/tests/corelib/error_stack_trace_test.dart b/tests/corelib/error_stack_trace_test.dart
index 55be1d3bacc0dbb44710313f1bbc91ef75c2795e..6851f7b904ca3b4bef8f4cde944e65d733289029 100644
--- a/tests/corelib/error_stack_trace_test.dart
+++ b/tests/corelib/error_stack_trace_test.dart
@@ -57,18 +57,26 @@ void type() {
main() {
List<Function> errorFunctions = [
- argument, noSuchMethod, nullThrown, range, fallThrough,
- abstractClassInstantiation, unsupported, unimplemented, state,
- type ];
+ argument,
+ noSuchMethod,
+ nullThrown,
+ range,
+ fallThrough,
+ abstractClassInstantiation,
+ unsupported,
+ unimplemented,
+ state,
+ type
+ ];
for (var f in errorFunctions) {
bool hasThrown = false;
try {
f();
- } catch(e) {
+ } catch (e) {
hasThrown = true;
- Expect.isTrue(e.stackTrace is StackTrace,
- "$e doesn't have a non-null stack trace");
+ Expect.isTrue(
+ e.stackTrace is StackTrace, "$e doesn't have a non-null stack trace");
}
Expect.isTrue(hasThrown);
}

Powered by Google App Engine
This is Rietveld 408576698