Commit ca0fe2ef authored by skyostil's avatar skyostil Committed by Commit bot

perf: Make RAF heavy first frame test do what it says

The requestAnimationFrame test which simulates a large jank in the
first rAF callback (raf.html?heavy_first_frame) was actually adding
the delay to every callback. This patch fixes the synthetic delay
to use the correct one-shot mode.

BUG=391005

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

Cr-Commit-Position: refs/heads/master@{#291886}
parent 0139e0db
......@@ -249,7 +249,8 @@ class Page16(ToughSchedulingCasesPage):
url='file://tough_scheduling_cases/raf.html?heavy_first_frame',
page_set=page_set)
self.synthetic_delays = {'cc.BeginMainFrame': {'target_duration': 0.15}}
self.synthetic_delays = {'cc.BeginMainFrame': {'target_duration': 0.15,
'mode': 'oneshot'}}
class Page17(ToughSchedulingCasesPage):
......
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