-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Rewrite MediaSourceEngine codec switching tests (#6462)
The tests for MediaSourceEngine codec switching were written to ignore types and suppress access controls. The were unreadable, too, with very little whitespace, confusing one-letter variable names, and difficult-to-follow event mocking. This made it more difficult to debug test failures in PR #6460. This rewrites the tests in a more readable manner with compiler enforcement of types in the tests. Two helper functions are used to isolate the necessary access-control suppressions. This exposed a bug in the tests, in which one test case (preserve SourceBuffer attributes) only passed because the original version failed to await on an async process. I am not sure that the functionality in that test exists at that level. For now, the test is disabled. I'll follow up with removal after more investigation. Related to #6458, #6460
- Loading branch information
1 parent
32d7054
commit e75fcc9
Showing
1 changed file
with
129 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters