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

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

Issue 12224085: Adding a test for UListElement (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « no previous file | no next file » | 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698