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

Unified Diff: tests/html/svg_1_test.dart

Issue 11364186: Dartifying SVG library class names. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Syncing to latest, updating for style guide. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/html/node_test.dart ('k') | tests/html/svg_2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/svg_1_test.dart
diff --git a/tests/html/svg_1_test.dart b/tests/html/svg_1_test.dart
index 997a361f66566367794827a01fdea4ff87f2db1a..a6bfc44da448786f8394604d52f55fa667f129f3 100644
--- a/tests/html/svg_1_test.dart
+++ b/tests/html/svg_1_test.dart
@@ -2,14 +2,14 @@ library SVG1Test;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
-import 'dart:svg';
+import 'dart:svg' as svg;
// Test that SVG is present in dart:html API
main() {
useHtmlConfiguration();
- var isSVGElement = predicate((x) => x is SVGElement, 'is a SVGElement');
+ var isSvgElement = predicate((x) => x is svg.SvgElement, 'is a SvgElement');
test('simpleRect', () {
var div = new Element.tag('div');
@@ -24,7 +24,7 @@ main() {
var e = document.query('#svg1');
expect(e, isNotNull);
- SVGRectElement r = document.query('#rect1');
+ svg.RectElement r = document.query('#rect1');
expect(r.x.baseVal.value, 10);
expect(r.y.baseVal.value, 20);
expect(r.height.baseVal.value, 40);
@@ -34,13 +34,13 @@ main() {
test('trailing newline', () {
// Ensures that we handle SVG with trailing newlines.
- var logo = new SVGElement.svg("""
+ var logo = new svg.SvgElement.svg("""
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<path/>
</svg>
""");
- expect(logo, isSVGElement);
+ expect(logo, isSvgElement);
});
}
« no previous file with comments | « tests/html/node_test.dart ('k') | tests/html/svg_2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698