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

Unified Diff: tests/html/element_test.dart

Issue 12817003: Change getRange to sublist. Make getRange deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: tests/html/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 35b5b2ec24d33796b017ae6fd2264457fcd394e6..7fc6bfeb5e3acb01f893e5112ca6ec88a3f8bab4 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -479,9 +479,9 @@ main() {
expect(el.children.length, 1);
});
- test('getRange', () {
+ test('sublist', () {
var el = makeElementWithChildren();
- expect(el.children.getRange(1, 1), isElementList);
+ expect(el.children.sublist(1, 2), isElementList);
});
});
@@ -582,8 +582,8 @@ main() {
expect(els[2], isHRElement);
});
- test('getRange', () {
- expect(getQueryAll().getRange(1, 1) is List<Element>, isTrue);
+ test('sublist', () {
+ expect(getQueryAll().sublist(1, 2) is List<Element>, isTrue);
});
testUnsupported('[]=', () => getQueryAll()[1] = new Element.tag('br'));
@@ -632,8 +632,8 @@ main() {
expect(filtered, isElementIterable);
});
- test('getRange', () {
- var range = makeElList().getRange(1, 2);
+ test('sublist', () {
+ var range = makeElList().sublist(1, 3);
expect(range, isElementList);
expect(range[0], isImageElement);
expect(range[1], isInputElement);

Powered by Google App Engine
This is Rietveld 408576698