Commit 02a4180d authored by David Bokan's avatar David Bokan Committed by Commit Bot

Reset virtual time state in scrollbar tests

This prevents ScrollbarTestWithVirtualTimer from polluting global state
for tests following it.

Bug: 791742
Change-Id: Iae3440451833408a6a5bd24b3319b307cd6d3547
Reviewed-on: https://chromium-review.googlesource.com/969582
Commit-Queue: David Bokan <bokan@chromium.org>
Reviewed-by: default avatarAlex Clarke <alexclarke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544691}
parent 441bf304
......@@ -100,6 +100,11 @@ class ScrollbarsTestWithVirtualTimer : public ScrollbarsTest {
WebView().Scheduler()->EnableVirtualTime();
}
void TearDown() override {
WebView().Scheduler()->DisableVirtualTimeForTesting();
ScrollbarsTest::TearDown();
}
void TimeAdvance() {
WebView().Scheduler()->SetVirtualTimePolicy(
PageScheduler::VirtualTimePolicy::kAdvance);
......
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