Skip to content

Commit

Permalink
Use ES5 in JavaScript executed by webdriver (for IE11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Walch committed Aug 2, 2020
1 parent 760e411 commit 8f1ef8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/auto/setup.js
Expand Up @@ -123,10 +123,10 @@ async function testSmoothSwitch (url, config) {
const callback = arguments[arguments.length - 1];
window.startStream(url, config, callback);
const video = window.video;
window.hls.once(window.Hls.Events.FRAG_CHANGED, (event, data) => {
window.hls.once(window.Hls.Events.FRAG_CHANGED, function (event, data) {
window.switchToHighestLevel('next');
});
window.hls.on(window.Hls.Events.LEVEL_SWITCHED, (event, data) => {
window.hls.on(window.Hls.Events.LEVEL_SWITCHED, function (event, data) {
console.log('[test] > level switched: ' + data.level);
let currentTime = video.currentTime;
if (data.level === window.hls.levels.length - 1) {
Expand Down

0 comments on commit 8f1ef8e

Please sign in to comment.