| Index: content/shell/renderer/test_runner/web_test_proxy.cc
|
| diff --git a/content/shell/renderer/test_runner/web_test_proxy.cc b/content/shell/renderer/test_runner/web_test_proxy.cc
|
| index 8b3cfdee2b344823b4a4049fb54e4a0d32678120..6b97d39df6e4cd2a9a9cc3449388815db1fd0483 100644
|
| --- a/content/shell/renderer/test_runner/web_test_proxy.cc
|
| +++ b/content/shell/renderer/test_runner/web_test_proxy.cc
|
| @@ -311,12 +311,7 @@ std::string DumpFramesAsMarkup(blink::WebFrame* frame, bool recursive) {
|
| }
|
|
|
| std::string DumpDocumentText(blink::WebFrame* frame) {
|
| - // We use the document element's text instead of the body text here because
|
| - // not all documents have a body, such as XML documents.
|
| - blink::WebElement document_element = frame->document().documentElement();
|
| - if (document_element.isNull())
|
| - return std::string();
|
| - return document_element.innerText().utf8();
|
| + return frame->document().contentAsTextForTesting().utf8();
|
| }
|
|
|
| std::string DumpFramesAsText(blink::WebFrame* frame, bool recursive) {
|
|
|