Re: [html-tests] Test media element load algorithm sequence (#571)

"*it's usually possible to avoid by e.g. waiting for an event you know comes later (loadstart) than the one your testing for (emptied)*"

How do I "wait" for the event without using ```setTimeout```? Do you want to simply pull  ```t.step()``` out of ```setTimeout(function{...})```? 

I do see what you mean about the networkState, however, from my understanding of the spec I am not testing for whether the value is NETWORK_LOADING or NETWORK_IDLE, but that the value is specifically NOT  NETWORK_EMPTY, before continuing with the test:
"*If the media element's networkState is not set to NETWORK_EMPTY, then run these substeps:*"








View on GitHub: https://github.com/w3c/web-platform-tests/pull/571#issuecomment-34818371

Received on Tuesday, 11 February 2014 22:50:29 UTC