OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 library element_types; | 5 library element_types; |
6 import '../../pkg/unittest/lib/unittest.dart'; | 6 import '../../pkg/unittest/lib/unittest.dart'; |
7 import '../../pkg/unittest/lib/html_individual_config.dart'; | 7 import '../../pkg/unittest/lib/html_individual_config.dart'; |
8 import 'dart:html'; | 8 import 'dart:html'; |
9 | 9 |
10 main() { | 10 main() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 expect(OutputElement.supported, true); | 57 expect(OutputElement.supported, true); |
58 }); | 58 }); |
59 }); | 59 }); |
60 | 60 |
61 group('supported_progress', () { | 61 group('supported_progress', () { |
62 test('supported', () { | 62 test('supported', () { |
63 expect(ProgressElement.supported, true); | 63 expect(ProgressElement.supported, true); |
64 }); | 64 }); |
65 }); | 65 }); |
66 | 66 |
| 67 group('supported_shadow', () { |
| 68 test('supported', () { |
| 69 expect(ShadowElement.supported, true); |
| 70 }); |
| 71 }); |
| 72 |
67 group('supported_track', () { | 73 group('supported_track', () { |
68 test('supported', () { | 74 test('supported', () { |
69 expect(TrackElement.supported, true); | 75 expect(TrackElement.supported, true); |
70 }); | 76 }); |
71 }); | 77 }); |
72 | 78 |
73 group('constructors', () { | 79 group('constructors', () { |
74 test('a', () { | 80 test('a', () { |
75 expect((new AnchorElement()) is AnchorElement, true); | 81 expect((new AnchorElement()) is AnchorElement, true); |
76 }); | 82 }); |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 }); | 249 }); |
244 test('q', () { | 250 test('q', () { |
245 expect((new Element.tag('q')) is QuoteElement, true); | 251 expect((new Element.tag('q')) is QuoteElement, true); |
246 }); | 252 }); |
247 test('script', () { | 253 test('script', () { |
248 expect((new ScriptElement()) is ScriptElement, true); | 254 expect((new ScriptElement()) is ScriptElement, true); |
249 }); | 255 }); |
250 test('select', () { | 256 test('select', () { |
251 expect((new SelectElement()) is SelectElement, true); | 257 expect((new SelectElement()) is SelectElement, true); |
252 }); | 258 }); |
| 259 test('shadow', () { |
| 260 expect((new Element.tag('shadow')) is ShadowElement, |
| 261 ShadowElement.supported); |
| 262 }); |
253 test('source', () { | 263 test('source', () { |
254 expect((new SourceElement()) is SourceElement, true); | 264 expect((new SourceElement()) is SourceElement, true); |
255 }); | 265 }); |
256 test('span', () { | 266 test('span', () { |
257 expect((new SpanElement()) is SpanElement, true); | 267 expect((new SpanElement()) is SpanElement, true); |
258 }); | 268 }); |
259 test('style', () { | 269 test('style', () { |
260 expect((new StyleElement()) is StyleElement, true); | 270 expect((new StyleElement()) is StyleElement, true); |
261 }); | 271 }); |
262 test('table', () { | 272 test('table', () { |
(...skipping 28 matching lines...) Expand all Loading... |
291 expect((new UListElement()) is UListElement, true); | 301 expect((new UListElement()) is UListElement, true); |
292 }); | 302 }); |
293 test('video', () { | 303 test('video', () { |
294 expect((new VideoElement()) is VideoElement, true); | 304 expect((new VideoElement()) is VideoElement, true); |
295 }); | 305 }); |
296 test('unknown', () { | 306 test('unknown', () { |
297 expect((new Element.tag('someunknown')) is UnknownElement, true); | 307 expect((new Element.tag('someunknown')) is UnknownElement, true); |
298 });; | 308 });; |
299 }); | 309 }); |
300 } | 310 } |
OLD | NEW |