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

Unified Diff: tests/lib/logging/logging_test.dart

Issue 10828139: Remove use of deprecated test functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « tests/html/dom_isolates_test.dart ('k') | utils/tests/pub/lock_file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/logging/logging_test.dart
===================================================================
--- tests/lib/logging/logging_test.dart (revision 10086)
+++ tests/lib/logging/logging_test.dart (working copy)
@@ -65,7 +65,7 @@
});
test('logger name cannot start with a "." ', () {
- expectThrow(() => new Logger('.c'));
+ expect(() => new Logger('.c'), throws);
});
test('logger naming is hierarchical', () {
@@ -134,7 +134,7 @@
});
test('cannot set level if hierarchy is disabled', () {
- expectThrow(() {a.level = Level.FINE;});
+ expect(() {a.level = Level.FINE;}, throws);
});
test('loggers effective level - no hierarchy', () {
« no previous file with comments | « tests/html/dom_isolates_test.dart ('k') | utils/tests/pub/lock_file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698