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

Unified Diff: tests/html/mouse_event_test.dart

Issue 13471016: Fixing conversion of null event targets. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/dart2js_Conversions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/mouse_event_test.dart
diff --git a/tests/html/non_instantiated_is_test.dart b/tests/html/mouse_event_test.dart
similarity index 65%
copy from tests/html/non_instantiated_is_test.dart
copy to tests/html/mouse_event_test.dart
index bf1ece1419bbfc49c5f4efa06ae8fe440ca85fba..4be967bda1b0d60fb55b220d9231f8480fa70328 100644
--- a/tests/html/non_instantiated_is_test.dart
+++ b/tests/html/mouse_event_test.dart
@@ -2,19 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// Regression test for dart2js, that used to emit wrong code on is
-// checks of native classes that are not instantiated.
-
-import 'dart:html';
+library mouse_event_test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
-
-var a = [new Object()];
+import 'dart:html';
main() {
useHtmlConfiguration();
- test('is', () {
- expect(a[0] is Node, isFalse);
+ test('relatedTarget', () {
+ var event = new MouseEvent('mouseout');
+ expect(event.relatedTarget, isNull);
});
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/src/dart2js_Conversions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698