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

Unified Diff: tests/html/js_typed_interop_type2_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_type1_test.dart ('k') | tests/html/js_typed_interop_type3_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_type2_test.dart
diff --git a/tests/html/js_typed_interop_type2_test.dart b/tests/html/js_typed_interop_type2_test.dart
index 09350f1675c6d8079bb9e27c6c8ae45bcabe7321..6b3dbed3a4f999d0ed8689b3ead92f5ca85c6fdd 100644
--- a/tests/html/js_typed_interop_type2_test.dart
+++ b/tests/html/js_typed_interop_type2_test.dart
@@ -25,11 +25,6 @@ class F {
}
@NoInline()
-testA(A o) {
- return o.foo;
-}
-
-@NoInline()
testC(C o) {
return o.foo;
}
@@ -41,8 +36,8 @@ testF(F o) {
void expectValueOrTypeError(f(), value) {
try {
- String i = 0; // Test for checked mode.
- Expect.equals(f(), value);
+ var i = 0;
+ String s = i; // Test for checked mode.
} on TypeError catch (error) {
Expect.throws(f, (ex) => ex is TypeError);
}
« no previous file with comments | « tests/html/js_typed_interop_type1_test.dart ('k') | tests/html/js_typed_interop_type3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698