OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Put universally passing event constructors in this file. | 5 // Put universally passing event constructors in this file. |
6 // Move constructors that fail on some configuration to their own | 6 // Move constructors that fail on some configuration to their own |
7 // element_constructor_foo_test.dart file. | 7 // element_constructor_foo_test.dart file. |
8 | 8 |
9 import 'dart:html'; | 9 import 'dart:html'; |
10 | 10 |
11 import 'package:minitest/minitest.dart'; | 11 import 'package:expect/minitest.dart'; |
12 | 12 |
13 main() { | 13 main() { |
14 var isAnchorElement = | 14 var isAnchorElement = |
15 predicate((x) => x is AnchorElement, 'is an AnchorElement'); | 15 predicate((x) => x is AnchorElement, 'is an AnchorElement'); |
16 var isAreaElement = | 16 var isAreaElement = |
17 predicate((x) => x is AreaElement, 'is an AreaElement'); | 17 predicate((x) => x is AreaElement, 'is an AreaElement'); |
18 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); | 18 var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); |
19 var isCanvasElement = | 19 var isCanvasElement = |
20 predicate((x) => x is CanvasElement, 'is a CanvasElement'); | 20 predicate((x) => x is CanvasElement, 'is a CanvasElement'); |
21 var isParagraphElement = | 21 var isParagraphElement = |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 test('span', () { | 67 test('span', () { |
68 var e = new SpanElement(); | 68 var e = new SpanElement(); |
69 expect(e, isSpanElement); | 69 expect(e, isSpanElement); |
70 }); | 70 }); |
71 | 71 |
72 test('select', () { | 72 test('select', () { |
73 var e = new SelectElement(); | 73 var e = new SelectElement(); |
74 expect(e, isSelectElement); | 74 expect(e, isSelectElement); |
75 }); | 75 }); |
76 } | 76 } |
OLD | NEW |