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

Unified Diff: tests/html/document_test.dart

Issue 41843003: Second round of deprecation removal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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: tests/html/document_test.dart
diff --git a/tests/html/document_test.dart b/tests/html/document_test.dart
index ca04a0f96cedfd40362635985385535ef2a81d74..2a543e751e63faaa64ebcd8bf2b6961a4a1b5a13 100644
--- a/tests/html/document_test.dart
+++ b/tests/html/document_test.dart
@@ -66,7 +66,7 @@ main() {
var div = new Element.html('<div><div id="foo">bar</div></div>');
var doc = document.implementation.createHtmlDocument('');
expect(doc.adoptNode(div), div);
- expect(div.document, doc);
+ expect(div.ownerDocument, doc);
doc.body.nodes.add(div);
expect(doc.query('#foo').text, 'bar');
});
@@ -76,7 +76,7 @@ main() {
var doc = document.implementation.createHtmlDocument('');
var div2 = doc.importNode(div, true);
expect(div2, isNot(equals(div)));
- expect(div2.document, doc);
+ expect(div2.ownerDocument, doc);
doc.body.nodes.add(div2);
expect(doc.query('#foo').text, 'bar');
});

Powered by Google App Engine
This is Rietveld 408576698