Open Bug 1674844 (media-subfolders) Opened 4 years ago Updated 3 years ago

[meta] Re-organize files under `dom/media` and divide them into subfolders by features

Categories

(Core :: Audio/Video: Playback, task, P3)

task

Tracking

()

People

(Reporter: alwu, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: meta)

We have too many files under dom/media and mess all the codes and tests together. Some browser tests for media code event wasn't put under dom/media, it's a time to re-organize them and make its hierachy clearer.

Use this as a meta bug to track all related changes.

Depends on: 1674845

We've had some discussion around location of tests. It would be nice to have tests located closer to the code they're testing rather than in a big test dir. Further, it would be good to group different types of tests in a common way. My understanding of our discussion is a preference for having a test dir (edit: or tests, unless we want to nail down one), then breaking tests our further into subdirs like mochitest, browser, gtest. So for eme we would have dom/media/eme/test/mochitests for the mochitests.

Depends on: 1675326

In addition, the benefit of putting different tests to different folders is that they can use the corresponding eslint config automatically.

[1] https://searchfox.org/mozilla-central/rev/c938c7416c633639a5c8ce4412be586eefb48005/.eslintrc.js#24-38

Depends on: 1690407
You need to log in before you can comment on or make changes to this bug.