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

Unified Diff: tests/html/element_test.dart

Issue 12086062: Rename mappedBy to map. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Undo change to test-script. Created 7 years, 11 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/element_classes_test.dart ('k') | tests/html/streams_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 09c49375143a5c05e2364aa79bea521e7cb14aac..4ec1bfc61bffc91344aa0d2bdf058a3fec896717 100644
--- a/tests/html/element_test.dart
+++ b/tests/html/element_test.dart
@@ -109,7 +109,7 @@ main() {
expect(node.tHead.rows[0].cells.length, 3);
expect(node.tBodies.length, 1);
expect(node.tBodies[0].rows.length, 2);
- expect(node.tBodies[0].rows[1].cells.mappedBy((c) => c.innerHtml),
+ expect(node.tBodies[0].rows[1].cells.map((c) => c.innerHtml),
[' Failing\n ', ' Grade\n ', ' Passing\n']);
});
@@ -182,7 +182,7 @@ main() {
'is a TableRowElement'));
expect(node.tagName, 'TR');
expect(node.parent, isNull);
- expect(node.cells.mappedBy((c) => c.innerHtml), ['foo', 'bar']);
+ expect(node.cells.map((c) => c.innerHtml), ['foo', 'bar']);
});
test('.html td', () {
@@ -539,7 +539,7 @@ main() {
});
test('mappedBy', () {
- var texts = getQueryAll().mappedBy((el) => el.text).toList();
+ var texts = getQueryAll().map((el) => el.text).toList();
expect(texts, equals(['Dart!', 'Hello', '']));
});
« no previous file with comments | « tests/html/element_classes_test.dart ('k') | tests/html/streams_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698