Commit 178f8818 authored by Marcin Kosiba's avatar Marcin Kosiba Committed by Unsuk Jung
Browse files

De-flake WebViewTest.testCapturePicture

The test had a baked-in assumption that waiting for a single
onNewPicture after the load guarantees that the picture returned
from capturePicture will contain the contents of the newly loaded
page. This is in general not true (we may receive onNewPicture
callback for an intermediate 'about:blank' page load, for example)
and caused the test to occasionally fail.

The solution is to rewrite the test to wait for the correct picture
instead.

Bug: 12971701

BUG: https://code.google.com/p/android/issues/detail?id=65418
Change-Id: Id891be760adfa9241f162ba3768a4f5baad2c326
parent 4adba5a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment