Skip to content

Commit

Permalink
Merge suites into single file (#11)
Browse files Browse the repository at this point in the history
* Merge suites into single file

Before this change each test suite was declared in a separate file,
resulting in a bunch of files with a single meaningful line.

This commmit merges all suites declaration into |suite.js|.

It also drops "DASH PlayReady shaka Tests" and "DASH PlayReady dashjs
Tests" suites. PlayReady tests are now visible in "DASH shaka/dashjs Tests"
suite. There is a little point in keeping a separate suite for the sake
of 2 tests. Filtering of DRM tests on platforms which do not support it
should be achieved with the usage of profiles mechanism.
  • Loading branch information
maciej-kolanski-red authored Jul 6, 2022
1 parent fe8142f commit c3d653c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 90 deletions.
5 changes: 1 addition & 4 deletions coverage.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@
"src/engines.js",
"src/codecSupport.js",
"src/commonTests.js",
"src/dashTest.js",
"src/hlsTest.js",
"src/hssTest.js",
"src/progressiveTest.js",
"src/suites.js",
"src/codecSupportTests.js",
"src/coverage.js",
"js_mse_eme/harness/main.js",
Expand Down
5 changes: 1 addition & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@
"src/engines.js",
"src/codecSupport.js",
"src/commonTests.js",
"src/dashTest.js",
"src/hlsTest.js",
"src/hssTest.js",
"src/progressiveTest.js",
"src/suites.js",
"src/codecSupportTests.js",
"js_mse_eme/harness/main.js",
];
Expand Down
30 changes: 0 additions & 30 deletions src/dashTest.js

This file was deleted.

30 changes: 0 additions & 30 deletions src/hlsTest.js

This file was deleted.

22 changes: 0 additions & 22 deletions src/hssTest.js

This file was deleted.

9 changes: 9 additions & 0 deletions src/progressiveTest.js → src/suites.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
* limitations under the License.
*/

/*
* This file declares test suites, which can be selected from main UI or via |test_type| URL parameter.
* The final test suite name and content is generated by the |makeTests| function.
* Suite's tests subset depends on selected profile (see profiles.js).
*/

"use strict";

makeTests(MvtMedia.DASH, ["dash"]);
makeTests(MvtMedia.HLS, ["hls"]);
makeTests(MvtMedia.HSS, ["hss"]);
makeTests(MvtMedia.Progressive, ["progressive"]);

0 comments on commit c3d653c

Please sign in to comment.