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

Issue 2755873002: Improve FirstMeaningfulPaintDetectorTest's timer tests (Closed)

Created:
3 years, 9 months ago by Kunihiko Sakamoto
Modified:
3 years, 9 months ago
Reviewers:
kouhei (in TOK)
CC:
chromium-reviews, blink-reviews, dshwang, blink-reviews-paint_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve FirstMeaningfulPaintDetectorTest's timer tests This rewrites FirstMeaningfulPaintDetectorTest's test case for the network quiet timers, using TestingPlatformSupportWithMockScheduler. Now it verifies that the timers are actually fired. This also changes other test cases to use mock timer provided by TestingPlatformSupportWithMockScheduler. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2755873002 Cr-Commit-Position: refs/heads/master@{#457394} Committed: https://chromium.googlesource.com/chromium/src/+/e9c1c98d51c7b2bb74f58da335aa75bdb128cd89

Patch Set 1 #

Total comments: 2

Patch Set 2 : 0.001 -> 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -69 lines) Patch
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.h View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetector.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp View 1 13 chunks +56 lines, -64 lines 0 comments Download

Messages

Total messages: 21 (16 generated)
Kunihiko Sakamoto
3 years, 9 months ago (2017-03-16 09:07:25 UTC) #13
kouhei (in TOK)
lgtm https://codereview.chromium.org/2755873002/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp File third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp (right): https://codereview.chromium.org/2755873002/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp#newcode23 third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp:23: m_platform->advanceClockSeconds(0.001); why 0.001? make this larger?
3 years, 9 months ago (2017-03-16 09:21:12 UTC) #14
Kunihiko Sakamoto
https://codereview.chromium.org/2755873002/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp File third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp (right): https://codereview.chromium.org/2755873002/diff/20001/third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp#newcode23 third_party/WebKit/Source/core/paint/FirstMeaningfulPaintDetectorTest.cpp:23: m_platform->advanceClockSeconds(0.001); On 2017/03/16 09:21:12, kouhei wrote: > why 0.001? ...
3 years, 9 months ago (2017-03-16 09:26:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2755873002/40001
3 years, 9 months ago (2017-03-16 09:27:09 UTC) #18
commit-bot: I haz the power
3 years, 9 months ago (2017-03-16 11:03:34 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/e9c1c98d51c7b2bb74f58da335aa...

Powered by Google App Engine
This is Rietveld 408576698