| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 expect((new Element.tag('tbody')) is TableSectionElement, true); | 279 expect((new Element.tag('tbody')) is TableSectionElement, true); |
| 280 expect((new Element.tag('tfoot')) is TableSectionElement, true); | 280 expect((new Element.tag('tfoot')) is TableSectionElement, true); |
| 281 expect((new Element.tag('thead')) is TableSectionElement, true); | 281 expect((new Element.tag('thead')) is TableSectionElement, true); |
| 282 }); | 282 }); |
| 283 test('track', () { | 283 test('track', () { |
| 284 expect((new Element.tag('track')) is TrackElement, | 284 expect((new Element.tag('track')) is TrackElement, |
| 285 TrackElement.supported); | 285 TrackElement.supported); |
| 286 }); | 286 }); |
| 287 test('ul', () { | 287 test('ul', () { |
| 288 expect((new UListElement()) is UListElement, true); | 288 expect((new UListElement()) is UListElement, true); |
| 289 var ul = new UListElement(); |
| 290 var li = new LIElement(); |
| 291 ul.append(li); |
| 289 }); | 292 }); |
| 290 test('video', () { | 293 test('video', () { |
| 291 expect((new VideoElement()) is VideoElement, true); | 294 expect((new VideoElement()) is VideoElement, true); |
| 292 }); | 295 }); |
| 293 test('unknown', () { | 296 test('unknown', () { |
| 294 expect((new Element.tag('someunknown')) is UnknownElement, true); | 297 expect((new Element.tag('someunknown')) is UnknownElement, true); |
| 295 });; | 298 });; |
| 296 }); | 299 }); |
| 297 } | 300 } |
| OLD | NEW |