From 92cd071f24dcbd961c72b54e5d04cc11813a236e Mon Sep 17 00:00:00 2001 From: Kevin Moore <kevmoo@google.com> Date: Thu, 12 Feb 2015 12:58:24 -0800 Subject: [PATCH] fix bug with registerException Cherry-picked 1e93b9be7674b6789daf6518f15ee973225a9c38 from master R=nweiz@google.com Review URL: https://codereview.chromium.org//897313006 --- CHANGELOG.md | 4 ++++ lib/src/internal_test_case.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbe48c4b..d7344bc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +##0.11.5+3 + +* Fixed issue with handling exceptions. + ##0.11.5+2 * Properly detect when tests are finished being run on content shell. diff --git a/lib/src/internal_test_case.dart b/lib/src/internal_test_case.dart index 1227eea2..97636661 100644 --- a/lib/src/internal_test_case.dart +++ b/lib/src/internal_test_case.dart @@ -194,7 +194,7 @@ class InternalTestCase implements TestCase { if (result == null) { fail(message, stackTrace); } else { - error(message, stackTrace); + this.error(message, stackTrace); } } diff --git a/pubspec.yaml b/pubspec.yaml index be4e9237..3be0c54a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: unittest -version: 0.11.5+2 +version: 0.11.5+3 author: Dart Team <misc@dartlang.org> description: A library for writing dart unit tests. homepage: https://github.com/dart-lang/unittest -- GitLab