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

Side by Side Diff: tests/html/svg_element_tests.dart

Issue 10191033: test renaming overhaul: step 4 client tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698