mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision ad219567030d1f99f7310f52a17546b57b70d29e
This commit is contained in:
parent
2c63d1296b
commit
a7e62acbe8
129 changed files with 4156 additions and 590 deletions
|
@ -5,4 +5,8 @@ import time
|
|||
sleep_padding = 15.0
|
||||
|
||||
def sleep_at_least(sleep_in_ms):
|
||||
time.sleep((sleep_in_ms + sleep_padding) / 1E3);
|
||||
sleep_until = time.time() + (sleep_in_ms / 1E3)
|
||||
time.sleep((sleep_in_ms + sleep_padding) / 1E3)
|
||||
# Check if the padding was sufficient; if not, sleep again.
|
||||
while time.time() < sleep_until:
|
||||
time.sleep(sleep_padding / 1E3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue