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

Unified Diff: tests/corelib_strong/list_set_range_test.dart

Issue 2683893002: Make corelib_strong tests strong-mode compliant (Closed)
Patch Set: Created 3 years, 10 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: tests/corelib_strong/list_set_range_test.dart
diff --git a/tests/corelib_strong/list_set_range_test.dart b/tests/corelib_strong/list_set_range_test.dart
index da8005238fafc070deb11e897aeca6d840024309..53195abcf163d3a29badc5c0644ed05739556329 100644
--- a/tests/corelib_strong/list_set_range_test.dart
+++ b/tests/corelib_strong/list_set_range_test.dart
@@ -58,15 +58,15 @@ main() {
testNonExtendableList();
}
-void expectIOORE(Function f) {
+void expectIOORE(void f()) {
Expect.throws(f, (e) => e is RangeError);
}
-void expectSE(Function f) {
+void expectSE(void f()) {
Expect.throws(f, (e) => e is StateError);
}
-void expectAE(Function f) {
+void expectAE(void f()) {
Expect.throws(f, (e) => e is ArgumentError);
}

Powered by Google App Engine
This is Rietveld 408576698