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

Unified Diff: tests/lib_strong/html/typing_test.dart

Issue 2456803004: fixes #27586, prefer context type in generic inference (Closed)
Patch Set: fix Created 3 years, 9 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/lib_strong/html/js_typed_interop_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib_strong/html/typing_test.dart
diff --git a/tests/lib_strong/html/typing_test.dart b/tests/lib_strong/html/typing_test.dart
index e353bf5c413a48690eefb41b75db635da7821046..144ab8f3e5d68a934db98b07f2018bd16b675db9 100644
--- a/tests/lib_strong/html/typing_test.dart
+++ b/tests/lib_strong/html/typing_test.dart
@@ -7,10 +7,10 @@ main() {
predicate((x) => x is List<StyleSheet>, 'is a List<StyleSheet>');
test('NodeList', () {
- List<Node> asList = window.document.queryAll('body');
+ List<Element> asList = window.document.queryAll('body');
// Check it's Iterable
int counter = 0;
- for (Node node in window.document.queryAll('body')) {
+ for (Element node in window.document.queryAll('body')) {
counter++;
}
expect(counter, 1);
« no previous file with comments | « tests/lib_strong/html/js_typed_interop_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698