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

Unified Diff: tests/html/node_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/htmlcollection_test.dart ('k') | tests/html/selectelement_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/node_test.dart
diff --git a/tests/html/node_test.dart b/tests/html/node_test.dart
index 5d5ac00245b0d87af571bb17d216610125a6fbab..80ab9a97c222d73e7f81f2892f9daed8ff6db856 100644
--- a/tests/html/node_test.dart
+++ b/tests/html/node_test.dart
@@ -56,7 +56,7 @@ main() {
test('last', () {
var node = makeNodeWithChildren();
- Expect.isTrue(node.nodes.last() is Comment);
+ Expect.isTrue(node.nodes.last is Comment);
});
test('forEach', () {
@@ -115,13 +115,13 @@ main() {
test('add', () {
var node = makeNode();
node.nodes.add(new Element.tag('hr'));
- Expect.isTrue(node.nodes.last() is HRElement);
+ Expect.isTrue(node.nodes.last is HRElement);
});
test('addLast', () {
var node = makeNode();
node.nodes.addLast(new Element.tag('hr'));
- Expect.isTrue(node.nodes.last() is HRElement);
+ Expect.isTrue(node.nodes.last is HRElement);
});
test('iterator', () {
« no previous file with comments | « tests/html/htmlcollection_test.dart ('k') | tests/html/selectelement_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698