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

Unified Diff: test/backend/invoker_test.dart

Issue 1162703003: Use registerException in invoker_test. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/backend/invoker_test.dart
diff --git a/test/backend/invoker_test.dart b/test/backend/invoker_test.dart
index 52ef5987c71aec69dbcb5287e7a8db4fda6b3b08..2f23c7ff69eed5ac0f8d792c924d8d69a73062a5 100644
--- a/test/backend/invoker_test.dart
+++ b/test/backend/invoker_test.dart
@@ -169,7 +169,7 @@ void main() {
test("a synchronous reported failure causes the test to fail", () {
var liveTest = _localTest(() {
- Invoker.current.handleError(new TestFailure("oh no"));
+ registerException(new TestFailure("oh no"));
}).load(suite);
expectSingleFailure(liveTest);
@@ -180,7 +180,7 @@ void main() {
() {
var liveTest = _localTest(() {
Invoker.current.addOutstandingCallback();
- new Future(() => Invoker.current.handleError(new TestFailure("oh no")));
+ new Future(() => registerException(new TestFailure("oh no")));
}).load(suite);
expectSingleFailure(liveTest);
@@ -201,7 +201,7 @@ void main() {
test("a failure reported asynchronously after the test causes it to error",
() {
var liveTest = _localTest(() {
- new Future(() => Invoker.current.handleError(new TestFailure("oh no")));
+ new Future(() => registerException(new TestFailure("oh no")));
}).load(suite);
expectStates(liveTest, [
@@ -303,7 +303,7 @@ void main() {
test("a synchronous reported error causes the test to error", () {
var liveTest = _localTest(() {
- Invoker.current.handleError("oh no");
+ registerException("oh no");
}).load(suite);
expectSingleError(liveTest);
@@ -314,7 +314,7 @@ void main() {
() {
var liveTest = _localTest(() {
Invoker.current.addOutstandingCallback();
- new Future(() => Invoker.current.handleError("oh no"));
+ new Future(() => registerException("oh no"));
}).load(suite);
expectSingleError(liveTest);
@@ -335,7 +335,7 @@ void main() {
test("an error reported asynchronously after the test causes it to error",
() {
var liveTest = _localTest(() {
- new Future(() => Invoker.current.handleError("oh no"));
+ new Future(() => registerException("oh no"));
}).load(suite);
expectStates(liveTest, [
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698