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

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

Issue 14258009: svg and json tests: fixing nested test calls (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: similiar bug in json_test Created 7 years, 8 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
« no previous file with comments | « no previous file | tests/json/json_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 library SvgElementTest; 5 library SvgElementTest;
6 import "package:expect/expect.dart"; 6 import "package:expect/expect.dart";
7 import '../../pkg/unittest/lib/unittest.dart'; 7 import '../../pkg/unittest/lib/unittest.dart';
8 import '../../pkg/unittest/lib/html_individual_config.dart'; 8 import '../../pkg/unittest/lib/html_individual_config.dart';
9 import 'dart:html'; 9 import 'dart:html';
10 import 'dart:svg' as svg; 10 import 'dart:svg' as svg;
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 }); 236 });
237 }); 237 });
238 238
239 group('supported_set', () { 239 group('supported_set', () {
240 test('supported', () { 240 test('supported', () {
241 expect(svg.SetElement.supported, true); 241 expect(svg.SetElement.supported, true);
242 }); 242 });
243 }); 243 });
244 244
245 group('constructors', () { 245 group('constructors', () {
246 test('supported', () { 246 group('supported', () {
247 testConstructor('a', (e) => e is svg.AElement); 247 testConstructor('a', (e) => e is svg.AElement);
248 testConstructor('circle', (e) => e is svg.CircleElement); 248 testConstructor('circle', (e) => e is svg.CircleElement);
249 testConstructor('clipPath', (e) => e is svg.ClipPathElement); 249 testConstructor('clipPath', (e) => e is svg.ClipPathElement);
250 testConstructor('defs', (e) => e is svg.DefsElement); 250 testConstructor('defs', (e) => e is svg.DefsElement);
251 testConstructor('desc', (e) => e is svg.DescElement); 251 testConstructor('desc', (e) => e is svg.DescElement);
252 testConstructor('ellipse', (e) => e is svg.EllipseElement); 252 testConstructor('ellipse', (e) => e is svg.EllipseElement);
253 testConstructor('g', (e) => e is svg.GElement); 253 testConstructor('g', (e) => e is svg.GElement);
254 testConstructor('image', (e) => e is svg.ImageElement); 254 testConstructor('image', (e) => e is svg.ImageElement);
255 testConstructor('line', (e) => e is svg.LineElement); 255 testConstructor('line', (e) => e is svg.LineElement);
256 testConstructor('linearGradient', (e) => e is svg.LinearGradientElement); 256 testConstructor('linearGradient', (e) => e is svg.LinearGradientElement);
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 var el = new svg.CircleElement(); 416 var el = new svg.CircleElement();
417 var classes = el.classes; 417 var classes = el.classes;
418 expect(el.classes.length, 0); 418 expect(el.classes.length, 0);
419 classes.toggle('foo'); 419 classes.toggle('foo');
420 expect(el.classes.length, 1); 420 expect(el.classes.length, 1);
421 classes.toggle('foo'); 421 classes.toggle('foo');
422 expect(el.classes.length, 0); 422 expect(el.classes.length, 0);
423 }); 423 });
424 }); 424 });
425 } 425 }
OLDNEW
« no previous file with comments | « no previous file | tests/json/json_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698