summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 18:13:07 +0000
committerojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-15 18:13:07 +0000
commit93530253a285c3ecc6f2b6ae46409b70ef85b48c (patch)
tree8873465cd6b9fb83155bc75f292c3f82c0c09339 /webkit
parent3bf4753a40685972952910daa83a0fd1edcd39a6 (diff)
downloadchromium_src-93530253a285c3ecc6f2b6ae46409b70ef85b48c.zip
chromium_src-93530253a285c3ecc6f2b6ae46409b70ef85b48c.tar.gz
chromium_src-93530253a285c3ecc6f2b6ae46409b70ef85b48c.tar.bz2
SerializerTests.SerializeHTMLDOMWithNonStandardEntities
fails after http://trac.webkit.org/changeset/63403 due to different text node coalescing. There's no reason for this test to use the text node to read the content. Review URL: http://codereview.chromium.org/2878030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/dom_serializer_unittest.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/webkit/glue/dom_serializer_unittest.cc b/webkit/glue/dom_serializer_unittest.cc
index a38d82f..a1846f3 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);