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

Unified Diff: tests/corelib/future_test.dart

Issue 10546131: Update Future tests to match new "stackTrace" property. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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: tests/corelib/future_test.dart
diff --git a/tests/corelib/future_test.dart b/tests/corelib/future_test.dart
index 96f5aa66cf58b9246d665a588be7bd8ea6e7aee1..8448581ad9d0cb74a02013b22439b2daf45c73de 100644
--- a/tests/corelib/future_test.dart
+++ b/tests/corelib/future_test.dart
@@ -308,7 +308,7 @@ testExceptionHandlerAfterCompleteReturnsFalseThenThrows() {
testCallStackThrowsIfNotComplete() {
var exception;
try {
- new Completer().future.callStack;
+ new Completer().future.stackTrace;
} catch (var ex) {
exception = ex;
}
@@ -317,16 +317,16 @@ testCallStackThrowsIfNotComplete() {
}
testCallStackIsNullIfCompletedSuccessfully() {
- Expect.isNull(new Future.immediate('blah').callStack);
+ Expect.isNull(new Future.immediate('blah').stackTrace);
}
testCallStackReturnsCallstackPassedToCompleteException() {
final completer = new Completer();
final future = completer.future;
- final callstack = 'fake call stack';
- completer.completeException(new Exception(), callstack);
- Expect.equals(callstack, future.callStack);
+ final stackTrace = 'fake stack trace';
+ completer.completeException(new Exception(), stackTrace);
+ Expect.equals(stackTrace, future.stackTrace);
}
testCallStackIsCapturedIfTransformCallbackThrows() {
@@ -335,9 +335,9 @@ testCallStackIsCapturedIfTransformCallbackThrows() {
throw 'whoops!';
});
- final callstack = 'fake call stack';
+ final stackTrace = 'fake stack trace';
completer.complete('blah');
- Expect.isNotNull(transformed.callStack);
+ Expect.isNotNull(transformed.stackTrace);
}
testCallStackIsCapturedIfChainCallbackThrows() {
@@ -346,9 +346,9 @@ testCallStackIsCapturedIfChainCallbackThrows() {
throw 'whoops!';
});
- final callstack = 'fake call stack';
+ final stackTrace = 'fake stack trace';
completer.complete('blah');
- Expect.isNotNull(chained.callStack);
+ Expect.isNotNull(chained.stackTrace);
}
// Tests for mixed usage of [onComplete], [then], and [handleException]
« 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