Index: sdk/lib/svg/dart2js/svg_dart2js.dart |
diff --git a/sdk/lib/svg/dart2js/svg_dart2js.dart b/sdk/lib/svg/dart2js/svg_dart2js.dart |
index feeb7450b8e4e646f196b0a9e94345de7f91365e..46ee3bc1091556b73a0eb8c2d54b624ee9df627a 100644 |
--- a/sdk/lib/svg/dart2js/svg_dart2js.dart |
+++ b/sdk/lib/svg/dart2js/svg_dart2js.dart |
@@ -3242,6 +3242,13 @@ class LengthList implements JavaScriptIndexingBehavior, List<Length> native "*SV |
Map<int, Length> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<Length> mixins. |
@DomName('SVGLengthList.appendItem') |
@@ -3880,6 +3887,13 @@ class NumberList implements JavaScriptIndexingBehavior, List<Number> native "*SV |
Map<int, Number> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<Number> mixins. |
@DomName('SVGNumberList.appendItem') |
@@ -4794,6 +4808,13 @@ class PathSegList implements JavaScriptIndexingBehavior, List<PathSeg> native "* |
Map<int, PathSeg> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<PathSeg> mixins. |
@DomName('SVGPathSegList.appendItem') |
@@ -5693,6 +5714,13 @@ class StringList implements JavaScriptIndexingBehavior, List<String> native "*SV |
Map<int, String> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<String> mixins. |
@DomName('SVGStringList.appendItem') |
@@ -6869,6 +6897,13 @@ class TransformList implements List<Transform>, JavaScriptIndexingBehavior nativ |
Map<int, Transform> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<Transform> mixins. |
@DomName('SVGTransformList.appendItem') |
@@ -7402,6 +7437,13 @@ class _ElementInstanceList implements JavaScriptIndexingBehavior, List<ElementIn |
Map<int, ElementInstance> asMap() => |
IterableMixinWorkaround.asMapList(this); |
+ String toString() { |
+ StringBuffer buffer = new StringBuffer('['); |
+ buffer.writeAll(this, ', '); |
+ buffer.write(']'); |
+ return buffer.toString(); |
+ } |
+ |
// -- end List<ElementInstance> mixins. |
@DomName('SVGElementInstanceList.item') |