Index: tests/language/full_stacktrace2_test.dart |
diff --git a/tests/language/full_stacktrace2_test.dart b/tests/language/full_stacktrace2_test.dart |
index 57934f6450f349618b56d22bd060bd98e152f4c5..cad00f259afb7ec6ab724596461091e3f4cc73e1 100644 |
--- a/tests/language/full_stacktrace2_test.dart |
+++ b/tests/language/full_stacktrace2_test.dart |
@@ -7,13 +7,15 @@ import "package:expect/expect.dart"; |
void func1() { |
throw new Exception("Test full stacktrace"); |
} |
+ |
void func2() { |
func1(); |
} |
+ |
void func3() { |
try { |
func2(); |
- } on Object catch(e, s) { |
+ } on Object catch (e, s) { |
var fullTrace = s.toString(); |
print(fullTrace); |
Expect.isTrue(fullTrace.contains("func1")); |
@@ -25,17 +27,19 @@ void func3() { |
Expect.isTrue(fullTrace.contains("func7")); |
Expect.isTrue(fullTrace.contains("main")); |
- rethrow; // This is a rethrow. |
+ rethrow; // This is a rethrow. |
} |
} |
+ |
int func4() { |
func3(); |
return 1; |
} |
+ |
int func5() { |
try { |
func4(); |
- } on Object catch(e, s) { |
+ } on Object catch (e, s) { |
var fullTrace = s.toString(); |
print(fullTrace); |
Expect.isTrue(fullTrace.contains("func1")); |
@@ -49,14 +53,17 @@ int func5() { |
} |
return 1; |
} |
+ |
int func6() { |
func5(); |
return 1; |
} |
+ |
int func7() { |
func6(); |
return 1; |
} |
+ |
main() { |
var i = func7(); |
Expect.equals(1, i); |