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

Unified Diff: webkit/glue/dom_serializer_unittest.cc

Issue 2878030: SerializerTests.SerializeHTMLDOMWithNonStandardEntities (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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: webkit/glue/dom_serializer_unittest.cc
diff --git a/webkit/glue/dom_serializer_unittest.cc b/webkit/glue/dom_serializer_unittest.cc
index a38d82f4afd1c7e5df3737dd9f6d522983d774ad..a1846f3bdfbb38be21f33b72edd734cbe623673a 100644
--- a/webkit/glue/dom_serializer_unittest.cc
+++ b/webkit/glue/dom_serializer_unittest.cc
@@ -650,10 +650,7 @@ TEST_F(DomSerializerTests, SerializeHTMLDOMWithNonStandardEntities) {
};
WebString value = body_element.getAttribute("title");
ASSERT_TRUE(UTF16ToWide(value) == parsed_value);
- // Check the BODY content.
- WebNode text_node = body_element.firstChild();
- ASSERT_TRUE(text_node.isTextNode());
- ASSERT_TRUE(UTF16ToWide(text_node.nodeValue()) == parsed_value);
+ ASSERT_TRUE(UTF16ToWide(body_element.innerText()) == parsed_value);
// Do serialization.
SerializeDomForURL(file_url, false);
« 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