mirror of
https://github.com/servo/servo.git
synced 2025-08-12 08:55:32 +01:00
Update web-platform-tests to revision 6b6163867ad474d977778a3f19c378a05a4851dc
This commit is contained in:
parent
3ebd42caa3
commit
498854a0e4
49 changed files with 587 additions and 173 deletions
8
tests/wpt/web-platform-tests/common/sleep.py
Normal file
8
tests/wpt/web-platform-tests/common/sleep.py
Normal file
|
@ -0,0 +1,8 @@
|
|||
import time
|
||||
|
||||
# sleep can be lower than requested value in some platforms: https://bugs.python.org/issue31539
|
||||
# We add padding here to compensate for that.
|
||||
sleep_padding = 15.0
|
||||
|
||||
def sleep_at_least(sleep_in_ms):
|
||||
time.sleep((sleep_in_ms + sleep_padding) / 1E3);
|
Loading…
Add table
Add a link
Reference in a new issue