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

Unified Diff: tests/lib_strong/convert/chunked_conversion_utf86_test.dart

Issue 2989993002: fix unsound cast failures in tests (Closed)
Patch Set: fix Created 3 years, 5 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/lib_strong/convert/chunked_conversion_utf86_test.dart
diff --git a/tests/lib_strong/convert/chunked_conversion_utf86_test.dart b/tests/lib_strong/convert/chunked_conversion_utf86_test.dart
index 07660da97b23c686e586c4b5fbb4d000d577c27b..109c1f17f1e9c4ce2a1e8a948d26304432156189 100644
--- a/tests/lib_strong/convert/chunked_conversion_utf86_test.dart
+++ b/tests/lib_strong/convert/chunked_conversion_utf86_test.dart
@@ -208,37 +208,37 @@ main() {
return [
[test, "\u{FFFD}"],
[
- new List.from([0x61])..addAll(test),
+ new List<int>.from([0x61])..addAll(test),
"a\u{FFFD}"
],
[
- new List.from([0x61])
+ new List<int>.from([0x61])
..addAll(test)
..add(0x61),
"a\u{FFFD}a"
],
- [new List.from(test)..add(0x61), "\u{FFFD}a"],
- [new List.from(test)..addAll(test), "\u{FFFD}\u{FFFD}"],
+ [new List<int>.from(test)..add(0x61), "\u{FFFD}a"],
+ [new List<int>.from(test)..addAll(test), "\u{FFFD}\u{FFFD}"],
[
- new List.from(test)
+ new List<int>.from(test)
..add(0x61)
..addAll(test),
"\u{FFFD}a\u{FFFD}"
],
[
- new List.from([0xc3, 0xa5])..addAll(test),
+ new List<int>.from([0xc3, 0xa5])..addAll(test),
"å\u{FFFD}"
],
[
- new List.from([0xc3, 0xa5])..addAll(test)..addAll([0xc3, 0xa5]),
+ new List<int>.from([0xc3, 0xa5])..addAll(test)..addAll([0xc3, 0xa5]),
"å\u{FFFD}å"
],
[
- new List.from(test)..addAll([0xc3, 0xa5]),
+ new List<int>.from(test)..addAll([0xc3, 0xa5]),
"\u{FFFD}å"
],
[
- new List.from(test)..addAll([0xc3, 0xa5])..addAll(test),
+ new List<int>.from(test)..addAll([0xc3, 0xa5])..addAll(test),
"\u{FFFD}å\u{FFFD}"
]
];

Powered by Google App Engine
This is Rietveld 408576698