Index: tests/html/svgelement_test.dart |
diff --git a/tests/html/svgelement_test.dart b/tests/html/svgelement_test.dart |
index 21f820519ca0c7133955b2ef54120d564de2e9ab..3b3a2f4a7afabfb49e513a15413451fd5d2ff051 100644 |
--- a/tests/html/svgelement_test.dart |
+++ b/tests/html/svgelement_test.dart |
@@ -186,6 +186,20 @@ main() { |
</svg>"""); |
expect(_nodeStrings(el.children), ["circle", "path"]); |
}); |
+ |
+ test('resize', () { |
+ var el = new svg.SvgSvgElement(); |
+ var items = [new svg.CircleElement(), new svg.RectElement()]; |
+ el.children = items; |
+ expect(el.children.length, 2); |
+ el.children.length = 1; |
+ expect(el.children.length, 1); |
+ expect(el.children.contains(items[0]), true); |
+ expect(el.children.contains(items[1]), false); |
+ |
+ el.children.length = 0; |
+ expect(el.children.contains(items[0]), false); |
+ }); |
}); |
group('elementset', () { |