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

Unified Diff: pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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
Index: pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart
diff --git a/pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart b/pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart
index 6ea9e59f9baad2ee0864a3c807437a513ee8139a..25bba2043ddeef010546fd1955f435a39a4d0016 100644
--- a/pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart
+++ b/pkg/scheduled_test/test/scheduled_test/capture_stack_traces_test.dart
@@ -32,6 +32,7 @@ void main() {
}, passing: ['test 2']);
expectTestsPass('does not capture a stack trace if set to false', () {
+ var errorThrown = new Object();
var error;
test('test 1', () {
currentSchedule.captureStackTraces = false;
@@ -39,7 +40,7 @@ void main() {
error = currentSchedule.errors.first;
});
- schedule(() => throw 'error');
+ schedule(() => throw errorThrown);
});
test('test 2', () {
« no previous file with comments | « pkg/scheduled_test/lib/src/value_future.dart ('k') | pkg/scheduled_test/test/scheduled_test/nested_task_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698