O'Reilly logo

JavaScript Testing by Liang Yuxian Eugene

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action—fixing the bugs and performing regression testing

We'll fix each of the bugs that we've uncovered, one by one. We'll start by writing a function that allows our program to support boundary values. The completed source code, where all of the errors have been corrected, is found in Chapter 5 of the source code folder, and is entitled perfect-code-for-JSLInt-enhanced.html.

Before we move on to the actual coding process for the first bug, let us think about what we can do to support boundary values.

Firstly, if we go back to our sample test plan, you will notice that in our "Bug Report Form", we have documented that we can try to change the function that checks for form input such that it can check for minimum and maximum values. For ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required