// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function(testRunner) {
const {page, session, dp} = await testRunner.startBlank(
`Tests that video does not block virtual time.`);
await dp.Emulation.setVirtualTimePolicy({policy: 'pause'});
await dp.Page.navigate({
url: testRunner.url('resources/virtual-time-video.html')});
dp.Emulation.setVirtualTimePolicy({
policy: 'pauseIfNetworkFetchesPending',
budget: 5000});
await dp.Emulation.onceVirtualTimeBudgetExpired();
testRunner.completeTest();
})