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

Unified Diff: client/tests/client/html/SVGElementTests.dart

Issue 9392028: Ensure that newly-constructed elements don't have parents. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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
Index: client/tests/client/html/SVGElementTests.dart
diff --git a/client/tests/client/html/SVGElementTests.dart b/client/tests/client/html/SVGElementTests.dart
index 64adfea101029d590c86f4988e32e71038ad7489..275f328688b760b8caf857f0cd9000f9a49f9c73 100644
--- a/client/tests/client/html/SVGElementTests.dart
+++ b/client/tests/client/html/SVGElementTests.dart
@@ -39,6 +39,9 @@ void testSVGElement() {
Expect.equals(svg, el.outerHTML);
});
+ test('has no parent', () =>
+ Expect.isNull(new SVGElement.svg('<circle/>').parent));
+
test('empty', () {
Expect.throws(() => new SVGElement.svg(""),
(e) => e is IllegalArgumentException);

Powered by Google App Engine
This is Rietveld 408576698