The EME spec tests [1] developed for v1 include migrations of many of Blink's layout tests as well as some new tests. It would be good to start using them so that we are using the same tests as other browsers, benefitting from upstream changes and new tests, and don't have to maintain redundant tests.
We should import them and start running them, then start removing redundant tests from Blink. Note that some of the layout tests in Blink are Chrome-specific or contain Chrome-specific checks.
However, there are a couple important issues:
1. The tests only support MP4 and related codecs whereas the Blink layout test environment only supports WebM and related codecs.
2. The drm-* tests will not pass because no commercial DRM system is supported in content shell (or in Chromium except on Android).
In addition:
3. There are some tests for optional features that Chrome does not implement, so we would expect to fail these.
4. The Web Platform Tests use MSE rather than src=. This is fine but will change our coverage. Given that the latter is not really used in practice and MSE is stable, this is probably a good change.
[1] https://github.com/w3c/web-platform-tests/tree/master/encrypted-media.
Comment 1 by yini...@chromium.org
, Nov 16 2016