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

Unified Diff: tests/corelib_strong/list_insert_all_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_insert_all_test.dart
diff --git a/tests/corelib_strong/list_insert_all_test.dart b/tests/corelib_strong/list_insert_all_test.dart
index a1d025a743e92012027785eb3c85d3a24589a50b..08b08f49c8833d5a612182b15e56def9a08ecaaa 100644
--- a/tests/corelib_strong/list_insert_all_test.dart
+++ b/tests/corelib_strong/list_insert_all_test.dart
@@ -75,10 +75,10 @@ main() {
expectUE(() => test([1, 2, 3].toList(growable: false), 0, [4, 5]));
}
-void expectRE(Function f) {
+void expectRE(void f()) {
Expect.throws(f, (e) => e is RangeError);
}
-void expectUE(Function f) {
+void expectUE(void f()) {
Expect.throws(f, (e) => e is UnsupportedError);
}

Powered by Google App Engine
This is Rietveld 408576698