Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: tests/html/element_types_test.dart

Issue 23151005: Move _HTMLElement to HtmlElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/generator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698