Generate test HTML with GetArticleTemplateHtml() at runtime.
This ensures the test reflects changes to the HTML template. Using an external test HTML file sometimes caused the test to fail after unrelated changes to the page's JS that happened to reference elements present in the template HTML but missing from the external test file. Currently, this change applies only to DistillerPageWebContentsTest.TestPinch, but similar tests for other JS functionality are planned. Bug: 1027612 Change-Id: Icbfc59e765ac4e6245cb7836da097bce1b36a2d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1965988 Commit-Queue: Aran Gilman <gilmanmh@google.com> Reviewed-by:Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#724721}
Showing
Please register or sign in to comment