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

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

Issue 13956006: Remove insertRange. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM (unrelated CL) and update status files. Created 7 years, 8 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 | « tests/corelib/list_remove_range_test.dart ('k') | tools/dom/src/WrappedList.dart » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 ElementTest; 5 library ElementTest;
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:async'; 8 import 'dart:async';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:svg' as svg; 10 import 'dart:svg' as svg;
(...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 new Element.tag('h1') 601 new Element.tag('h1')
602 ]); 602 ]);
603 }); 603 });
604 604
605 testUnsupported('sort', () => getQueryAll().sort((a1, a2) => true)); 605 testUnsupported('sort', () => getQueryAll().sort((a1, a2) => true));
606 606
607 testUnsupported('setRange', () => getQueryAll().setRange(0, 0, [])); 607 testUnsupported('setRange', () => getQueryAll().setRange(0, 0, []));
608 608
609 testUnsupported('removeRange', () => getQueryAll().removeRange(0, 1)); 609 testUnsupported('removeRange', () => getQueryAll().removeRange(0, 1));
610 610
611 testUnsupported('insertangeRange', () => getQueryAll().insertRange(0, 1));
612
613 testUnsupported('clear', () => getQueryAll().clear()); 611 testUnsupported('clear', () => getQueryAll().clear());
614 612
615 testUnsupported('removeLast', () => getQueryAll().removeLast()); 613 testUnsupported('removeLast', () => getQueryAll().removeLast());
616 }); 614 });
617 615
618 group('functional', () { 616 group('functional', () {
619 test('toString', () { 617 test('toString', () {
620 final elems = makeElementWithChildren().children; 618 final elems = makeElementWithChildren().children;
621 expect(elems.toString(), "[br, img, input]"); 619 expect(elems.toString(), "[br, img, input]");
622 final elem = makeElement().children; 620 final elem = makeElement().children;
(...skipping 22 matching lines...) Expand all
645 }); 643 });
646 644
647 test('sublist', () { 645 test('sublist', () {
648 var range = makeElList().sublist(1, 3); 646 var range = makeElList().sublist(1, 3);
649 expect(range, isElementList); 647 expect(range, isElementList);
650 expect(range[0], isImageElement); 648 expect(range[0], isImageElement);
651 expect(range[1], isInputElement); 649 expect(range[1], isInputElement);
652 }); 650 });
653 }); 651 });
654 } 652 }
OLDNEW
« no previous file with comments | « tests/corelib/list_remove_range_test.dart ('k') | tools/dom/src/WrappedList.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698