Asserting the Layout

In order for our CSS testing code to check the layout of our elements, we need to know the width of the page. This turns out to be surprisingly difficult, but we figure it out. Next, we validate that our element is centered on the page and deal with cross-browser rounding differences. With that, we’ve done it! An actual assertion about our page layout.

  1. E211Why Test-Drive CSS?

    Mon, 16 June ’14
  2. E212Tilting at Windmills

    Wed, 18 June ’14
  3. E213Inventing the Future

    Mon, 23 June ’14
  4. E214isElementCenteredInPage()

    Wed, 25 June ’14
  5. E215Asserting the Layout

    Mon, 30 June ’14
  6. E216A CSS Loading Conundrum

    Wed, 2 July ’14
  7. E217A Promising Beginning

    Mon, 7 July ’14