25 + 5 clock: Script error (:0)

I’ve been working on this for quite some time, but it seems that I can’t pass the following tests:
Timer: #1, #10, #13, #14, #15, #16
Audio: #1, #2
I either got timed out (must be my internet connection) or get “Script error. (:0)”
Here’s the link to my code:

Can you please link to the challenge step in your post. Thanks.

This project right here.

The challenges I failed are as follows:

When I click the element with the id of reset , any running timer should be stopped, the value within id="break-length" should return to 5 , the value within id="session-length" should return to 25, and the element with id="time-left" should reset to its default state.

When a session countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of timer-label should display a string indicating a break has begun.

When a session countdown reaches zero (NOTE: timer MUST reach 00:00), a new break countdown should begin, counting down from the value currently displayed in the id="break-length" element.

When a break countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of timer-label should display a string indicating a session has begun.

When a break countdown reaches zero (NOTE: timer MUST reach 00:00), a new session countdown should begin, counting down from the value currently displayed in the id="session-length" element.

When a countdown reaches zero (NOTE: timer MUST reach 00:00), a sound indicating that time is up should play. This should utilize an HTML5 audio tag and have a corresponding id="beep" .

What I noticed is that when I run the tests, the second stops at 59, but when I manually run it, the timer works just fine!

The audio is also working.

Update:

I’ve solved some of the errors and the remaining errors are:

When a break countdown reaches zero (NOTE: timer MUST reach 00:00), and a new countdown begins, the element with the id of timer-label should display a string indicating a session has begun.

When a break countdown reaches zero (NOTE: timer MUST reach 00:00), a new session countdown should begin, counting down from the value currently displayed in the id="session-length" element.

For some reasons, the test suite somehow sets the session length to -36 (though I can’t do it when manually testing) which is making the test fail.

Unfortunately, the only way I can pass all the tests (currently) is to set the session length to 1 while the test is running.

Is there any other way to solve this challenge?

(By the way, I feel like I’m talking to a wall…)

I’ve finished. Case closed.

1 Like

I think everyone believed in you that you would figure it out. :flexed_biceps:

This one is tricky though and it might take longer to get a good reply than most problems.

I’m glad you could solve your issue.

Still, some CSS would definetly not be bad for the page!

I’m just too lazy lol

Don’t worry, I’ll add 'em today.