A JavaScript test class and common test cases for PhantomCSS tests