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

Unified Diff: client/tests/client/html/ElementTests.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/ElementTests.dart
diff --git a/client/tests/client/html/ElementTests.dart b/client/tests/client/html/ElementTests.dart
index 0bf2869a113372af5611b0e85009ee0eb3b1d0e2..49e34d81391c0334001efb9fe09313c61ecfbbe8 100644
--- a/client/tests/client/html/ElementTests.dart
+++ b/client/tests/client/html/ElementTests.dart
@@ -84,6 +84,9 @@ void testElement() {
(e) => e is IllegalArgumentException);
});
+ test('.html has no parent', () =>
+ Expect.isNull(new Element.html('<br/>').parent));
+
test('a', () => testConstructorHelper('a', '<a>foo</a>', 'foo',
(element) => element is AnchorElement));
test('area', () => testConstructorHelper('area', '<area>foo</area>', '',

Powered by Google App Engine
This is Rietveld 408576698