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

Unified Diff: tests/lib_strong/html/event_customevent_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/documentfragment_test.dart ('k') | tests/lib_strong/html/js_typed_interop_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib_strong/html/event_customevent_test.dart
diff --git a/tests/lib_strong/html/event_customevent_test.dart b/tests/lib_strong/html/event_customevent_test.dart
index cbda1a78774b416d7a8077e4240853307d7d704f..4cb5066f3e18bcb743a54963edadfc11194a8a4c 100644
--- a/tests/lib_strong/html/event_customevent_test.dart
+++ b/tests/lib_strong/html/event_customevent_test.dart
@@ -44,7 +44,7 @@ main() {
var fired = false;
window.on['js_custom_event'].listen((ev) {
fired = true;
- expect(ev.detail, {'type': 'detail'});
+ expect((ev as CustomEvent).detail, {'type': 'detail'});
});
var script = new ScriptElement();
« no previous file with comments | « tests/lib_strong/html/documentfragment_test.dart ('k') | tests/lib_strong/html/js_typed_interop_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698