mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
Tests: Simplify the HTMLMediaElement-load-after-decode-error.html test
Use promises to await the expected sequence of events. Also, don't assume that canplaythrough will fire after error. That depends on the implementation.
This commit is contained in:
committed by
Gregory Bertilson
parent
d8cff1838a
commit
2d00a28f08
Notes:
github-actions[bot]
2026-04-10 20:22:49 +00:00
Author: https://github.com/Zaggy1024 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2d00a28f088 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/8809
@@ -1,17 +1,12 @@
|
||||
Events:
|
||||
document load: readyState=0
|
||||
loadstart: readyState=0
|
||||
durationchange: readyState=1 duration=0
|
||||
loadedmetadata: readyState=1
|
||||
error: readyState=1 code=3
|
||||
error handler: setting good src: readyState=1
|
||||
error handler: src setter returned: readyState=0
|
||||
abort: readyState=0
|
||||
emptied: readyState=0
|
||||
loadstart: readyState=0
|
||||
durationchange: readyState=2 duration=12.043
|
||||
loadedmetadata: readyState=2
|
||||
loadeddata: readyState=2
|
||||
canplay: readyState=4
|
||||
canplaythrough: readyState=4
|
||||
Final: readyState=4 duration=12.043
|
||||
loadstart: readyState=0
|
||||
durationchange: readyState=1 duration=0
|
||||
loadedmetadata: readyState=1
|
||||
error: readyState=1 code=3
|
||||
abort: readyState=0
|
||||
emptied: readyState=0
|
||||
loadstart: readyState=0
|
||||
durationchange: readyState=2 duration=12.043
|
||||
loadedmetadata: readyState=2
|
||||
loadeddata: readyState=2
|
||||
canplay: readyState=4
|
||||
canplaythrough: readyState=4
|
||||
|
||||
Reference in New Issue
Block a user