OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 | 5 |
6 void testSVGElement() { | 6 void testSVGElement() { |
7 Collection<String> _nodeStrings(Collection<Node> input) { | 7 Collection<String> _nodeStrings(Collection<Node> input) { |
8 final out = new List<String>(); | 8 final out = new List<String>(); |
9 for (Node n in input) { | 9 for (Node n in input) { |
10 if (n is Element) { | 10 if (n is Element) { |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 Expect.listEquals(["circle", "path"], _nodeStrings(el.elements)); | 175 Expect.listEquals(["circle", "path"], _nodeStrings(el.elements)); |
176 }); | 176 }); |
177 | 177 |
178 test('set', () { | 178 test('set', () { |
179 final el = new SVGSVGElement(); | 179 final el = new SVGSVGElement(); |
180 el.elements = [new SVGElement.tag("circle"), new SVGElement.tag("path")]; | 180 el.elements = [new SVGElement.tag("circle"), new SVGElement.tag("path")]; |
181 Expect.equals('<circle></circle><path></path>', el.innerHTML); | 181 Expect.equals('<circle></circle><path></path>', el.innerHTML); |
182 }); | 182 }); |
183 }); | 183 }); |
184 } | 184 } |
OLD | NEW |