| 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>');
|
| });
|
| });
|
|
|