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

Unified Diff: tests/html/element_test.dart

Issue 11273041: Make first and last getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 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
« no previous file with comments | « tests/html/documentfragment_test.dart ('k') | tests/html/htmlcollection_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/element_test.dart
diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
index 5295a076b5b4859fcc850434602ebaefc395efe6..511eef7d091764d79c81263e4a7d8c478cbd0b78 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -497,7 +497,7 @@ main() {
test('last', () {
var el = makeElementWithChildren();
- Expect.isTrue(el.elements.last() is InputElement);
+ Expect.isTrue(el.elements.last is InputElement);
});
test('forEach', () {
@@ -557,13 +557,13 @@ main() {
test('add', () {
var el = makeElement();
el.elements.add(new Element.tag('hr'));
- Expect.isTrue(el.elements.last() is HRElement);
+ Expect.isTrue(el.elements.last is HRElement);
});
test('addLast', () {
var el = makeElement();
el.elements.addLast(new Element.tag('hr'));
- Expect.isTrue(el.elements.last() is HRElement);
+ Expect.isTrue(el.elements.last is HRElement);
});
test('iterator', () {
@@ -636,7 +636,7 @@ main() {
}
test('last', () {
- Expect.isTrue(getQueryAll().last() is HRElement);
+ Expect.isTrue(getQueryAll().last is HRElement);
});
test('forEach', () {
« no previous file with comments | « tests/html/documentfragment_test.dart ('k') | tests/html/htmlcollection_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698