Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(259)

Issue 14495016: Fix flaky test: RenderWidgetHostViewBrowserTest.CopyFromBackingStore. (Closed)

Created:
7 years, 7 months ago by miu
Modified:
7 years, 7 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, ccameron, jamesr
Visibility:
Public.

Description

Fix flaky test: Enable RenderWidgetHostViewBrowserTest.CopyFromBackingStore. Added a spin-wait to cause the test to wait for the browser to create the BackingStore via its normal mechanism. ...and then I went ahead and refactored and cleaned up all the code. I did not add any significant additional testing. We will want to do this in a follow-up change. However, I did get rid of the #ifdef OS_XXX pragmas, so the tests will attempt to run on all platforms, not just Mac and Win, and use the CanXXX() methods to determine which features are supported for testing. BUG=224351 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=200226

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Refactor/cleanup render_widget_host_view_browsertest.cc. #

Patch Set 3 : More clean-up. Fixes for Aura. Disabled tests for Android and IOS platforms. #

Total comments: 8

Patch Set 4 : kbr@'s suggestions applied. #

Patch Set 5 : Wait for first present. Force-succeed some tests for platforms that must/cannot do compositing. #

Total comments: 2

Patch Set 6 : Improve comment regarding compositing mode maybe being tested. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -193 lines) Patch
M build/android/pylib/gtest/test_runner.py View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_browsertest.cc View 1 2 3 4 5 2 chunks +282 lines, -182 lines 0 comments Download
D content/test/data/rwhv_compositing_static.html View 1 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
miu
nick: Please review. kbr: OWNERs approval, please. Thanks, Yuri
7 years, 7 months ago (2013-04-29 23:01:26 UTC) #1
Ken Russell (switch to Gerrit)
I can't vouch for the correctness of this test, but LGTM if it improves the ...
7 years, 7 months ago (2013-04-29 23:08:54 UTC) #2
ncarter (slow)
lgtm in the sense of "enabled tests are better than disabled ones", but I agree ...
7 years, 7 months ago (2013-04-29 23:34:21 UTC) #3
jamesr
If the intent of this test is to verify the behavior in different modes (compositing ...
7 years, 7 months ago (2013-04-29 23:41:58 UTC) #4
miu
Discussed this with Nick a bit. After looking at these tests, I think it's clear ...
7 years, 7 months ago (2013-04-30 00:38:48 UTC) #5
miu
nick/kbr: PTAL. I went the route of forcing compositing on vs. disabling it. In each ...
7 years, 7 months ago (2013-04-30 23:05:02 UTC) #6
Ken Russell (switch to Gerrit)
LGTM, with a couple of questions. https://codereview.chromium.org/14495016/diff/20001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/14495016/diff/20001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode158 content/browser/renderer_host/render_widget_host_view_browsertest.cc:158: class RenderWidgetHostViewBrowserTest_Compositing The ...
7 years, 7 months ago (2013-04-30 23:23:02 UTC) #7
ncarter (slow)
lgtm, & agree with kbr's observations https://codereview.chromium.org/14495016/diff/20001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/14495016/diff/20001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode325 content/browser/renderer_host/render_widget_host_view_browsertest.cc:325: return; I expect ...
7 years, 7 months ago (2013-05-01 00:04:31 UTC) #8
miu
Thanks for the review, guys. I'll commit this later tonight, since there may be weirdness ...
7 years, 7 months ago (2013-05-01 00:19:36 UTC) #9
miu
nick/kbr: PTAL (delta from PS 4). Based on try bot results, I needed to add ...
7 years, 7 months ago (2013-05-14 19:21:37 UTC) #10
Ken Russell (switch to Gerrit)
LGTM if the test passes. https://codereview.chromium.org/14495016/diff/68001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/14495016/diff/68001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode198 content/browser/renderer_host/render_widget_host_view_browsertest.cc:198: return false; // Not ...
7 years, 7 months ago (2013-05-14 20:04:08 UTC) #11
ncarter (slow)
lgtm with obligatory "eww macros" admonishment
7 years, 7 months ago (2013-05-14 20:44:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/14495016/80001
7 years, 7 months ago (2013-05-15 00:21:14 UTC) #13
miu
Thanks guys. Trybots were green for content_browsertests across the board. https://codereview.chromium.org/14495016/diff/68001/content/browser/renderer_host/render_widget_host_view_browsertest.cc File content/browser/renderer_host/render_widget_host_view_browsertest.cc (right): https://codereview.chromium.org/14495016/diff/68001/content/browser/renderer_host/render_widget_host_view_browsertest.cc#newcode198 ...
7 years, 7 months ago (2013-05-15 00:21:39 UTC) #14
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=148830
7 years, 7 months ago (2013-05-15 06:23:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miu@chromium.org/14495016/80001
7 years, 7 months ago (2013-05-15 07:13:47 UTC) #16
commit-bot: I haz the power
7 years, 7 months ago (2013-05-15 10:00:15 UTC) #17
Message was sent while issue was closed.
Change committed as 200226

Powered by Google App Engine
This is Rietveld 408576698