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'); }); |
} |