| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 expect(ProgressElement.supported, true); | 63 expect(ProgressElement.supported, true); |
| 64 }); | 64 }); |
| 65 }); | 65 }); |
| 66 | 66 |
| 67 group('supported_shadow', () { | 67 group('supported_shadow', () { |
| 68 test('supported', () { | 68 test('supported', () { |
| 69 expect(ShadowElement.supported, true); | 69 expect(ShadowElement.supported, true); |
| 70 }); | 70 }); |
| 71 }); | 71 }); |
| 72 | 72 |
| 73 group('supported_template', () { |
| 74 test('supported', () { |
| 75 expect(TemplateElement.supported, true); |
| 76 }); |
| 77 }); |
| 78 |
| 73 group('supported_track', () { | 79 group('supported_track', () { |
| 74 test('supported', () { | 80 test('supported', () { |
| 75 expect(TrackElement.supported, true); | 81 expect(TrackElement.supported, true); |
| 76 }); | 82 }); |
| 77 }); | 83 }); |
| 78 | 84 |
| 79 group('constructors', () { | 85 group('constructors', () { |
| 80 test('a', () { | 86 test('a', () { |
| 81 expect((new AnchorElement()) is AnchorElement, true); | 87 expect((new AnchorElement()) is AnchorElement, true); |
| 82 }); | 88 }); |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 }); | 258 }); |
| 253 test('span', () { | 259 test('span', () { |
| 254 expect((new SpanElement()) is SpanElement, true); | 260 expect((new SpanElement()) is SpanElement, true); |
| 255 }); | 261 }); |
| 256 test('style', () { | 262 test('style', () { |
| 257 expect((new StyleElement()) is StyleElement, true); | 263 expect((new StyleElement()) is StyleElement, true); |
| 258 }); | 264 }); |
| 259 test('table', () { | 265 test('table', () { |
| 260 expect((new TableElement()) is TableElement, true); | 266 expect((new TableElement()) is TableElement, true); |
| 261 }); | 267 }); |
| 268 test('template', () { |
| 269 expect((new TemplateElement()) is TemplateElement, |
| 270 TemplateElement.supported); |
| 271 }); |
| 262 test('textarea', () { | 272 test('textarea', () { |
| 263 expect((new TextAreaElement()) is TextAreaElement, true); | 273 expect((new TextAreaElement()) is TextAreaElement, true); |
| 264 }); | 274 }); |
| 265 test('title', () { | 275 test('title', () { |
| 266 expect((new TitleElement()) is TitleElement, true); | 276 expect((new TitleElement()) is TitleElement, true); |
| 267 }); | 277 }); |
| 268 test('td', () { | 278 test('td', () { |
| 269 expect((new TableCellElement()) is TableCellElement, true); | 279 expect((new TableCellElement()) is TableCellElement, true); |
| 270 }); | 280 }); |
| 271 test('col', () { | 281 test('col', () { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 291 ul.append(li); | 301 ul.append(li); |
| 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 |