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

Unified Diff: tests/html/documentfragment_test.dart

Issue 10979063: Removing ElementList. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing. Created 8 years, 3 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 | « lib/html/templates/html/interface/interface_Element.darttemplate ('k') | tests/html/element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/documentfragment_test.dart
diff --git a/tests/html/documentfragment_test.dart b/tests/html/documentfragment_test.dart
index 7227184f0bba7bd286f9ec4d8fe1592c660e0aea..fbbd642c2151e72c702bdfdabe72b5e8ab88b1c2 100644
--- a/tests/html/documentfragment_test.dart
+++ b/tests/html/documentfragment_test.dart
@@ -62,18 +62,18 @@ main() {
test('.html parses input as HTML', () {
final fragment = new DocumentFragment.html('<a>foo</a>');
- Expect.isTrue(fragment.elements.first is AnchorElement);
+ Expect.isTrue(fragment.elements[0] is AnchorElement);
});
// test('.svg parses input as SVG', () {
// final fragment = new DocumentFragment.svg('<a>foo</a>');
- // Expect.isTrue(fragment.elements.first is SVGAElement);
+ // Expect.isTrue(fragment.elements[0] is SVGAElement);
// });
// TODO(nweiz): enable this once XML is ported.
// test('.xml parses input as XML', () {
// final fragment = new DocumentFragment.xml('<a>foo</a>');
- // Expect.isTrue(fragment.elements.first is XMLElement);
+ // Expect.isTrue(fragment.elements[0] is XMLElement);
// });
});
@@ -158,7 +158,7 @@ main() {
test('accessors are wrapped', () {
init();
- Expect.equals("A", elements.first.tagName);
+ Expect.equals("A", elements[0].tagName);
Expect.listEquals(
["I"], _nodeStrings(elements.filter((e) => e.tagName == "I")));
Expect.isTrue(elements.every((e) => e is Element));
« no previous file with comments | « lib/html/templates/html/interface/interface_Element.darttemplate ('k') | tests/html/element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698