Guide to Monocle tests

Monocle has three kinds of tests:

  1. Examples show you how to implement a Monocle Reader.
  2. Feature tests exercise the various aspects of Monocle, including the way book content is loaded, the way content is paginated, the way pages are animated, etc.
  3. Bug tests typically highlight rendering or logic problems in browsers, and in some cases test Monocle's workarounds.

Examples

Feature tests

Bug tests