Skip to content

Commit

Permalink
tests: Improve transmuxer tests
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 30, 2023
1 parent eec25b2 commit 87ad208
Show file tree
Hide file tree
Showing 2 changed files with 318 additions and 237 deletions.
14 changes: 14 additions & 0 deletions test/test/util/ui_utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,18 @@ shaka.test.UiUtils = class {

return video;
}

/**
* Creates a muted audio element for testing.
*
* @return {!HTMLAudioElement}
*/
static createAudioElement() {
const audio = /** @type {!HTMLAudioElement} */(document.createElement(
'audio'));

audio.muted = true;

return audio;
}
};
Loading

0 comments on commit 87ad208

Please sign in to comment.