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

Unified Diff: tests/html/js_typed_interop_type3_test.dart

Issue 2320593002: Fix tests to avoid analyzer warnings. (Closed)
Patch Set: Created 4 years, 3 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/js_typed_interop_type2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_typed_interop_type3_test.dart
diff --git a/tests/html/js_typed_interop_type3_test.dart b/tests/html/js_typed_interop_type3_test.dart
index f20bc2077695787b79d12b5ee25fd0457d66b627..f32d9f3e60349ca781d5fbf80243d7732dbb0990 100644
--- a/tests/html/js_typed_interop_type3_test.dart
+++ b/tests/html/js_typed_interop_type3_test.dart
@@ -65,7 +65,8 @@ function A(foo) {
void expectValueOrTypeError(f(), value) {
try {
- String i = 0; // Test for checked mode.
+ var i = 0;
+ String s = i; // Test for checked mode.
Expect.equals(f(), value);
} on TypeError catch (error) {
Expect.throws(f, (ex) => ex is TypeError);
« no previous file with comments | « tests/html/js_typed_interop_type2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698