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

Unified Diff: tests/html/js_typed_interop_type1_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 | « no previous file | tests/html/js_typed_interop_type2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/js_typed_interop_type1_test.dart
diff --git a/tests/html/js_typed_interop_type1_test.dart b/tests/html/js_typed_interop_type1_test.dart
index e85c1590a83c1cabccd15b9159ca3f77814a6c35..bbb6ec5564af853334a3c5825faf7d03ce1f82ff 100644
--- a/tests/html/js_typed_interop_type1_test.dart
+++ b/tests/html/js_typed_interop_type1_test.dart
@@ -38,7 +38,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 | « no previous file | tests/html/js_typed_interop_type2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698