Commit f9ab7d32 authored by W. James MacLean's avatar W. James MacLean Committed by Commit Bot

Add more logging to diagnose test.

Test if embedder WebContents has page focus when test fails.

TBR=alexmos@chromium.org

Bug: 1024672
Change-Id: Ieff2034984cd895336fa9978943c83f17cd27f6c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1934828Reviewed-by: default avatarJames MacLean <wjmaclean@chromium.org>
Reviewed-by: default avatarAlex Moshchuk <alexmos@chromium.org>
Commit-Queue: James MacLean <wjmaclean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#718864}
parent 32da0b4a
...@@ -1299,6 +1299,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessInteractivePDFTest, ...@@ -1299,6 +1299,10 @@ IN_PROC_BROWSER_TEST_F(SitePerProcessInteractivePDFTest,
LOG(ERROR) << "Embedder focused frame = " LOG(ERROR) << "Embedder focused frame = "
<< embedder_web_contents->GetFocusedFrame() << embedder_web_contents->GetFocusedFrame()
<< ", main frame = " << main_frame << ", main frame = " << main_frame
<< ", embedder_contents_focused = "
<< IsRenderWidgetHostFocused(
embedder_web_contents->GetRenderWidgetHostView()
->GetRenderWidgetHost())
<< ", iframe_text = " << child_text_area << ", iframe_text = " << child_text_area
<< ", iframe_pdf = " << ChildFrameAt(main_frame, 1); << ", iframe_pdf = " << ChildFrameAt(main_frame, 1);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment