Fix image data matching in DistillerTest.DistillMultiplePages
In DistillerTest.DistillMultiplePages, the images were added in an incorrect way, so that there were actually no images in the distilled results. Therefore, the image data matching in function VerifyArticleProtoMatchesMultipageData() were never executed. This was discovered when working on https://crbug.com/864015, and the lack of coverage was identified here: https://chromium-coverage.appspot.com/reports/590937/linux/chromium/src/components/dom_distiller/core/distiller_unittest.cc.html This CL fixes this by constructing the expected distillation correctly in CreateMultipageDistillerDataWithImages(). Bug: None Change-Id: Iaf6a1fc81ac956f362ee584d691b066dcde2dab7 Reviewed-on: https://chromium-review.googlesource.com/1226517Reviewed-by:Matthew Jones <mdjones@chromium.org> Commit-Queue: Wei-Yin Chen (陳威尹) <wychen@chromium.org> Cr-Commit-Position: refs/heads/master@{#591426}
Showing
Please register or sign in to comment