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

Unified Diff: tests/html/svgelement_test.dart

Issue 11413071: Deprecating Element.elements for Element.children. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback. Created 8 years, 1 month 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/shadow_dom_layout_test.dart ('k') | tests/html/xmldocument_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/svgelement_test.dart
diff --git a/tests/html/svgelement_test.dart b/tests/html/svgelement_test.dart
index ca8de855e591bc0e50838c4a7920a3ef627fa137..e41c356141c6713c21ce5633c15845f0c5917687 100644
--- a/tests/html/svgelement_test.dart
+++ b/tests/html/svgelement_test.dart
@@ -152,8 +152,8 @@ main() {
group('outerHTML', () {
test('outerHTML', () {
final el = new svg.SvgSvgElement();
- el.elements.add(new svg.CircleElement());
- el.elements.add(new svg.PathElement());
+ el.children.add(new svg.CircleElement());
+ el.children.add(new svg.PathElement());
expect(el.outerHTML,
'<svg version="1.1"><circle></circle><path></path></svg>');
});
@@ -162,17 +162,17 @@ main() {
group('innerHTML', () {
test('get', () {
final el = new svg.SvgSvgElement();
- el.elements.add(new svg.CircleElement());
- el.elements.add(new svg.PathElement());
+ el.children.add(new svg.CircleElement());
+ el.children.add(new svg.PathElement());
expect(el.innerHTML, '<circle></circle><path></path>');
});
test('set', () {
final el = new svg.SvgSvgElement();
- el.elements.add(new svg.CircleElement());
- el.elements.add(new svg.PathElement());
+ el.children.add(new svg.CircleElement());
+ el.children.add(new svg.PathElement());
el.innerHTML = '<rect></rect><a></a>';
- expect(_nodeStrings(el.elements), ["rect", "a"]);
+ expect(_nodeStrings(el.children), ["rect", "a"]);
});
});
@@ -184,14 +184,14 @@ main() {
<path></path>
text
</svg>""");
- expect(_nodeStrings(el.elements), ["circle", "path"]);
+ expect(_nodeStrings(el.children), ["circle", "path"]);
});
});
group('elementset', () {
test('set', () {
final el = new svg.SvgSvgElement();
- el.elements = [new svg.SvgElement.tag("circle"), new svg.SvgElement.tag("path")];
+ el.children = [new svg.SvgElement.tag("circle"), new svg.SvgElement.tag("path")];
expect(el.innerHTML, '<circle></circle><path></path>');
});
});
« no previous file with comments | « tests/html/shadow_dom_layout_test.dart ('k') | tests/html/xmldocument_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698