Chromium Code Reviews| Index: tests/html/element_constructor_1_test.dart |
| diff --git a/tests/html/element_constructor_1_test.dart b/tests/html/element_constructor_1_test.dart |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b0d1511bb5b9e48d52250b3044c56b84fbb9d86a |
| --- /dev/null |
| +++ b/tests/html/element_constructor_1_test.dart |
| @@ -0,0 +1,38 @@ |
| +// 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. |
| + |
| +// Put universally passing event constructors in this file. |
| +// Move constructors that fail on some configuration to their own |
| +// element_constructor_foo_test.dart file. |
| + |
| +#library('ElementConstructorTest'); |
| +#import('../../lib/unittest/unittest.dart'); |
| +#import('../../lib/unittest/html_config.dart'); |
| +#import('dart:html'); |
| + |
| +main() { |
| + useHtmlConfiguration(); |
| + |
| + test('area', () { |
| + var e = new AreaElement(); |
| + Expect.isTrue(e is AreaElement); |
| + }); |
| + |
| + // Audio tested in audioelement_test.dart |
| + |
| + test('div', () { |
| + var e = new DivElement(); |
| + Expect.isTrue(e is DivElement); |
| + }); |
| + |
| + test('p', () { |
| + var e = new ParagraphElement(); |
| + Expect.isTrue(e is ParagraphElement); |
| + }); |
| + |
| + test('span', () { |
| + var e = new SpanElement(); |
| + Expect.isTrue(e is SpanElement); |
| + }); |
|
vsm
2012/05/23 04:46:06
Minor nit: add a test for CanvasElement or some ot
|
| +} |