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

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: 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
Index: tests/html/svgelement_test.dart
diff --git a/tests/html/svgelement_test.dart b/tests/html/svgelement_test.dart
index 8a1ef5006644f926632152becd9917a9627f35c3..2bbbc1fe83888d2f520478311eb5050ec70edcef 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 SVGSVGElement();
- el.elements.add(new SVGCircleElement());
- el.elements.add(new SVGPathElement());
+ el.children.add(new SVGCircleElement());
+ el.children.add(new SVGPathElement());
expect(el.outerHTML,
'<svg version="1.1"><circle></circle><path></path></svg>');
});
@@ -162,17 +162,17 @@ main() {
group('innerHTML', () {
test('get', () {
final el = new SVGSVGElement();
- el.elements.add(new SVGCircleElement());
- el.elements.add(new SVGPathElement());
+ el.children.add(new SVGCircleElement());
+ el.children.add(new SVGPathElement());
expect(el.innerHTML, '<circle></circle><path></path>');
});
test('set', () {
final el = new SVGSVGElement();
- el.elements.add(new SVGCircleElement());
- el.elements.add(new SVGPathElement());
+ el.children.add(new SVGCircleElement());
+ el.children.add(new SVGPathElement());
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 SVGSVGElement();
- el.elements = [new SVGElement.tag("circle"), new SVGElement.tag("path")];
+ el.children = [new SVGElement.tag("circle"), new SVGElement.tag("path")];
expect(el.innerHTML, '<circle></circle><path></path>');
});
});

Powered by Google App Engine
This is Rietveld 408576698