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

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

Issue 21085008: Fixing some SVG collections not working on Dartium (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | tools/dom/scripts/systemnative.py » ('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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 root.append(element); 432 root.append(element);
433 433
434 document.body.append(root); 434 document.body.append(root);
435 435
436 var rect = element.getBoundingClientRect(); 436 var rect = element.getBoundingClientRect();
437 expect(rect is Rect, isTrue); 437 expect(rect is Rect, isTrue);
438 expect(rect.width, closeTo(100, 1)); 438 expect(rect.width, closeTo(100, 1));
439 expect(rect.height, closeTo(100, 1)); 439 expect(rect.height, closeTo(100, 1));
440 }); 440 });
441 }); 441 });
442
443 group('PathElement', () {
444 test('pathSegList', () {
445 svg.PathElement path =
446 new svg.SvgElement.svg('<path d="M 100 100 L 300 100 L 200 300 z"/>');
447 for (var seg in path.pathSegList) {
448 expect(seg is svg.PathSeg, isTrue);
449 }
450 });
451 });
442 } 452 }
OLDNEW
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698