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

You can avoid setTimeout by listening for the loadstart event and verifying there that the emptied event has been fired before calling t.done(). That's what I did in https://critic.hoppipolla.co.uk/r/768 at least.

You are correct, it isn't wrong to just load and ignore the specific networkState as long as it isn't NETWORK_EMPTY if you're just testing for the emptied event, but if one wants to test the abort event one does.

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

Received on Sunday, 16 February 2014 14:23:30 UTC