Commit c7fc2f72 authored by chrishtr@chromium.org's avatar chrishtr@chromium.org

Update webview plugin test to draw three frames, and not force paint.

I don't think forcing paint was necessary.

Trying three frames is an experiment to see if it fixes the flakiness on some debug and windows bots.

TBR=schenney

BUG=518999

Review URL: https://codereview.chromium.org/1306943003

git-svn-id: svn://svn.chromium.org/blink/trunk@201349 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1083609e
......@@ -11,11 +11,13 @@
onload = function() {
if (window.testRunner) {
window.testRunner.waitUntilDone();
// Need to paint two frames in order to allow the plugin to propery load.
// Need to paint two frames in order to allow the plugin to properly load.
// TODO(chrishtr): find out why and fix.
window.testRunner.layoutAndPaintAsyncThen(function() {
window.testRunner.layoutAndPaintAsyncThen(function() {
window.testRunner.notifyDone();
requestAnimationFrame(function() {
requestAnimationFrame(function() {
requestAnimationFrame(function() {
window.testRunner.notifyDone();
});
});
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment