test/com/google/javascript/jscomp/RhinoErrorReporterTest.java
/**
   * Verifies that the compiler emits an error for the given code.
   */
Verifies that the compiler emits an error for the given code.
Verifies that the compiler emits an error for the given code .
private void assertNoWarningOrError(String code) {
    Compiler compiler = parseCode(code);
    assertWithMessage("Expected error").that(compiler.getErrorCount()).isEqualTo(0);
    assertWithMessage("Expected warning").that(compiler.getErrorCount()).isEqualTo(0);
  }
private void assertNoWarningOrError ( String code ) { Compiler compiler = parseCode ( code ) ; assertWithMessage ( "Expected error" ) . that ( compiler . getErrorCount ( ) ) . isEqualTo ( 0 ) ; assertWithMessage ( "Expected warning" ) . that ( compiler . getErrorCount ( ) ) . isEqualTo ( 0 ) ; }
Verifies that the compiler emits an error for the given code.
Verifies that the compiler emits an error for the given code .