HTML and CSS Reference
Writing tests before refactoring greatly reduces the risk, and those same tests can
make cross-browser testing considerably easier.
In Chapter 2, The Test-Driven Development Process , we'll continue our explo-
ration of unit tests. We'll focus on benefits not discussed in this chapter: unit tests
as a design tool, and using unit tests as the primary driver for writing new code.