Writing good test cases General tips A good test case should have the following properties: portable fast understandable & clear deterministic Portable A test should work in DumpRenderTree (of course!) and in a WebKit-base browser. This means that anything that is specific to DumpRenderTree should not make the test fail if it is not available. Bad test: <script> testRunner.dumpAsText(); </script>