| Index: utils/tests/string_encoding/dunit.dart
|
| diff --git a/utils/tests/string_encoding/dunit.dart b/utils/tests/string_encoding/dunit.dart
|
| index fa4d39ed9898a6c4b7cae1634b183037668b6b75..11e0860deb8dd36dad74f9c2926cebf16e4d66ac 100644
|
| --- a/utils/tests/string_encoding/dunit.dart
|
| +++ b/utils/tests/string_encoding/dunit.dart
|
| @@ -86,11 +86,13 @@ class FailedTest extends _ExceptionResult implements TestResult {
|
| }
|
|
|
| class TestError extends _ExceptionResult implements TestResult {
|
| - TestError(String testDescription, var exception) :
|
| + TestError(String testDescription, var exception, var this.stacktrace) :
|
| super(testDescription, exception);
|
|
|
| String toString() => ">>> Test error caught in " +
|
| - "${_testDescription} with:\n${exception}\n";
|
| + "${_testDescription} with:\n${exception}\n$stacktrace\n";
|
| +
|
| + var stacktrace;
|
| }
|
|
|
| class TestClass {
|
| @@ -104,9 +106,9 @@ class TestClass {
|
| } catch (ExpectException x) {
|
| tearDown();
|
| return new FailedTest(description, x);
|
| - } catch (var x) {
|
| + } catch (var x, var stacktrace) {
|
| tearDown();
|
| - return new TestError(description, x);
|
| + return new TestError(description, x, stacktrace);
|
| }
|
| });
|
| }
|
|
|