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

Unified Diff: tests/html/text_event_test.dart

Issue 1126463005: Clean up WheelEvent (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review fixes" Created 5 years, 7 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/html.status ('k') | tests/html/wheelevent_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/text_event_test.dart
diff --git a/tests/html/non_instantiated_is_test.dart b/tests/html/text_event_test.dart
similarity index 52%
copy from tests/html/non_instantiated_is_test.dart
copy to tests/html/text_event_test.dart
index b226ea7a40cd99f1edb950f53b14698026019c99..5be0651808164851d8d3b1ca5fd085d9e262b9df 100644
--- a/tests/html/non_instantiated_is_test.dart
+++ b/tests/html/text_event_test.dart
@@ -1,20 +1,18 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// 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 text_event_test;
+import "package:expect/expect.dart";
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
+import 'dart:html';
-var a = [new Object()];
+import 'event_test.dart';
main() {
useHtmlConfiguration();
- test('is', () {
- expect(a[0] is Node, isFalse);
- });
+ eventTest('TextEvent', () => new TextEvent('foo', view: window, data: 'data'),
+ (ev) { expect(ev.data, 'data'); });
}
« no previous file with comments | « tests/html/html.status ('k') | tests/html/wheelevent_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698