| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 check('datalist', () => new DataListElement() is DataListElement, | 109 check('datalist', () => new DataListElement() is DataListElement, |
| 110 DataListElement.supported); | 110 DataListElement.supported); |
| 111 check('dl', () => new DListElement() is DListElement); | 111 check('dl', () => new DListElement() is DListElement); |
| 112 check('div', () => new DivElement() is DivElement); | 112 check('div', () => new DivElement() is DivElement); |
| 113 check('embed', () => new EmbedElement() is EmbedElement, | 113 check('embed', () => new EmbedElement() is EmbedElement, |
| 114 EmbedElement.supported); | 114 EmbedElement.supported); |
| 115 check('fieldset', () => new FieldSetElement() is FieldSetElement); | 115 check('fieldset', () => new FieldSetElement() is FieldSetElement); |
| 116 check('form', () => new FormElement() is FormElement); | 116 check('form', () => new FormElement() is FormElement); |
| 117 check('head', () => new HeadElement() is HeadElement); | 117 check('head', () => new HeadElement() is HeadElement); |
| 118 check('hr', () => new HRElement() is HRElement); | 118 check('hr', () => new HRElement() is HRElement); |
| 119 check('html', () => new HtmlElement() is HtmlElement); | 119 check('html', () => new HtmlHtmlElement() is HtmlHtmlElement); |
| 120 check('h1', () => new HeadingElement.h1() is HeadingElement); | 120 check('h1', () => new HeadingElement.h1() is HeadingElement); |
| 121 check('h2', () => new HeadingElement.h2() is HeadingElement); | 121 check('h2', () => new HeadingElement.h2() is HeadingElement); |
| 122 check('h3', () => new HeadingElement.h3() is HeadingElement); | 122 check('h3', () => new HeadingElement.h3() is HeadingElement); |
| 123 check('h4', () => new HeadingElement.h4() is HeadingElement); | 123 check('h4', () => new HeadingElement.h4() is HeadingElement); |
| 124 check('h5', () => new HeadingElement.h5() is HeadingElement); | 124 check('h5', () => new HeadingElement.h5() is HeadingElement); |
| 125 check('h6', () => new HeadingElement.h6() is HeadingElement); | 125 check('h6', () => new HeadingElement.h6() is HeadingElement); |
| 126 check('iframe', () => new IFrameElement() is IFrameElement); | 126 check('iframe', () => new IFrameElement() is IFrameElement); |
| 127 check('img', () => new ImageElement() is ImageElement); | 127 check('img', () => new ImageElement() is ImageElement); |
| 128 check('input', () => new InputElement() is InputElement); | 128 check('input', () => new InputElement() is InputElement); |
| 129 check('keygen', () => new KeygenElement() is KeygenElement, | 129 check('keygen', () => new KeygenElement() is KeygenElement, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 test('accepts li', () { | 179 test('accepts li', () { |
| 180 var ul = new UListElement(); | 180 var ul = new UListElement(); |
| 181 var li = new LIElement(); | 181 var li = new LIElement(); |
| 182 ul.append(li); | 182 ul.append(li); |
| 183 }); | 183 }); |
| 184 }); | 184 }); |
| 185 check('video', () => new VideoElement() is VideoElement); | 185 check('video', () => new VideoElement() is VideoElement); |
| 186 check('unknown', () => new Element.tag('someunknown') is UnknownElement); | 186 check('unknown', () => new Element.tag('someunknown') is UnknownElement); |
| 187 }); | 187 }); |
| 188 } | 188 } |
| OLD | NEW |