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

Unified Diff: tests/html/svgelement_test.dart

Issue 11471004: Hiding FilteredElementList class and fixing FilteredElementList.length. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Really reverting. Created 8 years 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 | « sdk/lib/html/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | 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 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', () {
« no previous file with comments | « sdk/lib/html/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698