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

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

Issue 13686018: Testing & supporting new HTMLTemplateElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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') | tests/html/html.status » ('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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698