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,13 +11,15 @@ ...@@ -11,13 +11,15 @@
onload = function() { onload = function() {
if (window.testRunner) { if (window.testRunner) {
window.testRunner.waitUntilDone(); 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. // TODO(chrishtr): find out why and fix.
window.testRunner.layoutAndPaintAsyncThen(function() { requestAnimationFrame(function() {
window.testRunner.layoutAndPaintAsyncThen(function() { requestAnimationFrame(function() {
requestAnimationFrame(function() {
window.testRunner.notifyDone(); window.testRunner.notifyDone();
}); });
}); });
});
} }
} }
</script> </script>
\ No newline at end of file
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