Index: tests/language_strong/full_stacktrace3_test.dart |
diff --git a/tests/language_strong/full_stacktrace3_test.dart b/tests/language_strong/full_stacktrace3_test.dart |
index 553f86afee3650d1321bb82f079ee328cccc9ec6..2475f37184a93afe71469640e35760a5cb8d8504 100644 |
--- a/tests/language_strong/full_stacktrace3_test.dart |
+++ b/tests/language_strong/full_stacktrace3_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(); |
Expect.isTrue(fullTrace.contains("func1")); |
Expect.isTrue(fullTrace.contains("func2")); |
@@ -26,14 +28,16 @@ void func3() { |
throw new Exception("This is not 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(); |
Expect.isFalse(fullTrace.contains("func1")); |
Expect.isFalse(fullTrace.contains("func2")); |
@@ -46,14 +50,17 @@ int func5() { |
} |
return 1; |
} |
+ |
int func6() { |
func5(); |
return 1; |
} |
+ |
int func7() { |
func6(); |
return 1; |
} |
+ |
main() { |
var i = func7(); |
Expect.equals(1, i); |