Re: [encrypted-media-tests] Fail unexpected keys keystatuseschange (#3746)

According to the specification, it is allowed for keys to transition through `status-pending`, so there may be multiple `keystatuschange` events, the first with some of all of the keys marked `status-pending` and zero or more further events, so long as the `keyStatuses` field differs from the last event each time.

So, I think it is correct to ignore any `keystatuseschange` events with one or more `status-pending` keys, but to record `allkeysusable` for every event where all keys are usable, rather than just the first such event.

In that way, if there are multiple events with all the keys usuable, the events list will be incorrect.

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

Received on Tuesday, 20 September 2016 16:00:40 UTC