OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |