Skip to content

Commit

Permalink
test: update expectation tests for Safari v18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguttandin committed Oct 30, 2024
1 parent bac3305 commit 9347904
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 34 deletions.
2 changes: 1 addition & 1 deletion config/karma/config-expectation-safari-penultimate.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ module.exports = (config) => {
}
});

env.WEBKIT_HEADLESS_BIN = 'webkit-v16-4/pw_run.sh';
env.WEBKIT_HEADLESS_BIN = 'webkit-v17-0/pw_run.sh';
};
2 changes: 1 addition & 1 deletion config/karma/config-expectation-safari-previous.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ module.exports = (config) => {
}
});

env.WEBKIT_HEADLESS_BIN = 'webkit-v17-0/pw_run.sh';
env.WEBKIT_HEADLESS_BIN = 'webkit-v17-4/pw_run.sh';
};
16 changes: 0 additions & 16 deletions test/expectation/safari/current/audio-context-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,4 @@ describe('audioContextConstructor', () => {
});
});
});

describe('getOutputTimestamp()', () => {
// bug #198

it('should expose a wrong contextTime', function (done) {
this.timeout(0);

setTimeout(() => {
expect(audioContext.currentTime).to.above(9);
expect(audioContext.getOutputTimestamp().contextTime).to.below(1);
expect(audioContext.getOutputTimestamp().contextTime * audioContext.sampleRate).to.above(9);

done();
}, 10000);
});
});
});
16 changes: 0 additions & 16 deletions test/expectation/safari/previous/audio-context-constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,20 +229,4 @@ describe('audioContextConstructor', () => {
});
});
});

describe('getOutputTimestamp()', () => {
// bug #198

it('should expose a wrong contextTime', function (done) {
this.timeout(0);

setTimeout(() => {
expect(audioContext.currentTime).to.above(9);
expect(audioContext.getOutputTimestamp().contextTime).to.below(1);
expect(audioContext.getOutputTimestamp().contextTime * audioContext.sampleRate).to.above(9);

done();
}, 10000);
});
});
});

0 comments on commit 9347904

Please sign in to comment.