The NewTabPage RenderTest currently does not render the Toolbar when creating the bitmap. Potentially use getViewRoot() or android.R.id.content to see if you can capture this as well.
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/15e51abda1ade941307298d75621affff75960ff commit 15e51abda1ade941307298d75621affff75960ff Author: peconn <peconn@chromium.org> Date: Tue Aug 30 05:16:28 2016 Render the root view in NewTabPageTest.testRender(). By rendering the root view we include the Toolbar in the new_tab_page renders. BUG= 641975 Review-Url: https://codereview.chromium.org/2288363002 Cr-Commit-Position: refs/heads/master@{#415144} [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/android/javatests/src/org/chromium/chrome/browser/ntp/NewTabPageTest.java [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/test/android/javatests/src/org/chromium/chrome/test/util/RenderUtils.java [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/test/data/android/render_tests/NewTabPageTest.new_tab_page.Nexus_5.port.png [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/test/data/android/render_tests/NewTabPageTest.new_tab_page.Nexus_5X.port.png [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/test/data/android/render_tests/NewTabPageTest.new_tab_page_scrolled.Nexus_5.port.png [modify] https://crrev.com/15e51abda1ade941307298d75621affff75960ff/chrome/test/data/android/render_tests/NewTabPageTest.new_tab_page_scrolled.Nexus_5X.port.png
Comment 1 by peconn@chromium.org
, Aug 29 2016