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

Unified Diff: tests/html/svg_attrs_test.dart

Issue 15941011: I had just added this test to validate that SVG namespaced attrs are working, but it's proving to b… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/svg_attrs_test.dart
diff --git a/tests/html/svg_attrs_test.dart b/tests/html/svg_attrs_test.dart
deleted file mode 100644
index ae3e6257247b48f88d0a711d44dd4fa35bdaab53..0000000000000000000000000000000000000000
--- a/tests/html/svg_attrs_test.dart
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-library SVGTest;
-import '../../pkg/unittest/lib/unittest.dart';
-import '../../pkg/unittest/lib/html_config.dart';
-import 'dart:svg';
-
-main() {
- useHtmlConfiguration();
-
- test('svg parsed attributes', () {
- var content = """
-<svg version="1.1"
- xmlns:xlink="http://www.w3.org/1999/xlink">
- <image xlink:href="foo.jpg"/>
-</svg>""";
-
- var svg = new SvgElement.svg(content);
- var img = svg.children[0];
- expect(img is ImageElement, isTrue);
- var attrs = img.attributes;
- expect(attrs.length, 0);
-
- var xlinkAttrs =
- img.getNamespacedAttributes('http://www.w3.org/1999/xlink');
- expect(xlinkAttrs.length, 1);
- expect(xlinkAttrs['href'], 'foo.jpg');
-
- // validate that the namespaced attr was set by waiting for the image
- // to fail to load.
- return img.onError.first;
- });
-
- test('svg explicit attributes', () {
-
- var img = new ImageElement();
- var xlinkAttrs =
- img.getNamespacedAttributes('http://www.w3.org/1999/xlink');
- xlinkAttrs['href'] = 'foo.jpg';
-
- // validate that the namespaced attr was set by waiting for the image
- // to fail to load.
- return img.onError.first;
- });
-}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698