mirror of
https://github.com/Tonejs/Tone.js
synced 2024-12-28 04:23:15 +00:00
increasing duration of test
was failing in FF
This commit is contained in:
parent
5afe6c8dee
commit
0f47174272
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ describe("ToneBufferSource", () => {
|
||||||
|
|
||||||
it("invokes onerror if no url", (done) => {
|
it("invokes onerror if no url", (done) => {
|
||||||
const source = new ToneBufferSource({
|
const source = new ToneBufferSource({
|
||||||
url: "./nosuchfile.wav",
|
url: "./nosuchfile.wav",
|
||||||
onerror() {
|
onerror() {
|
||||||
source.dispose();
|
source.dispose();
|
||||||
done();
|
done();
|
||||||
|
@ -279,7 +279,7 @@ describe("ToneBufferSource", () => {
|
||||||
player.onended = () => {
|
player.onended = () => {
|
||||||
wasInvoked = true;
|
wasInvoked = true;
|
||||||
};
|
};
|
||||||
}, buffer.duration * 1.1).then(() => {
|
}, buffer.duration * 2).then(() => {
|
||||||
expect(wasInvoked).to.equal(true);
|
expect(wasInvoked).to.equal(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue