Fix flaky test paint/invalidation/background-resize-height.html
Add capturePixelsThenAsync() to ensure image decoding is finished before
running the test, to avoid flakiness of "contentsOpaque" in the dumped
layer tree.
Also disabled the fixed height gradient case because it produces
invisible pixel difference.
BUG=
658479
Committed:
https://crrev.com/586f1b550af51392707deba2b9a1c9aaeeeb8bc9
Cr-Commit-Position: refs/heads/master@{#429506}