test/com/google/javascript/jscomp/IntegrationTestCase.java
/**
   * Asserts that when compiling with the given compiler options,
   * {@code original} is transformed into {@code compiled}.
   */
Asserts that when compiling with the given compiler options,
original is transformed into  compiled.
Asserts that when compiling with the given compiler options original is transformed into compiled .
protected void test(CompilerOptions options,
      String[] original, String[] compiled) {
    Compiler compiler = compile(options, original);
    assertWithMessage(
            "Expected no warnings or errors\n"
                + "Errors: \n"
                + Joiner.on("\n").join(compiler.getErrors())
                + "\n"
                + "Warnings: \n"
                + Joiner.on("\n").join(compiler.getWarnings()))
        .that(compiler.getErrors().length + compiler.getWarnings().length)
        .isEqualTo(0);
    Node root = compiler.getJsRoot();
    if (compiled != null) {
      Node expectedRoot = parseExpectedCode(compiled, options, normalizeResults);
      String explanation = expectedRoot.checkTreeEquals(root);
      assertWithMessage(
              "\n"
                  + "Expected: "
                  + compiler.toSource(expectedRoot)
                  + "\n"
                  + "Result:   "
                  + compiler.toSource(root)
                  + "\n"
                  + explanation)
          .that(explanation)
          .isNull();
    }
  }
protected void test ( CompilerOptions options , String [ ] original , String [ ] compiled ) { Compiler compiler = compile ( options , original ) ; assertWithMessage ( "Expected no warnings or errors\n" + "Errors: \n" + Joiner . on ( "\n" ) . join ( compiler . getErrors ( ) ) + "\n" + "Warnings: \n" + Joiner . on ( "\n" ) . join ( compiler . getWarnings ( ) ) ) . that ( compiler . getErrors ( ) . length + compiler . getWarnings ( ) . length ) . isEqualTo ( 0 ) ; Node root = compiler . getJsRoot ( ) ; if ( compiled != null ) { Node expectedRoot = parseExpectedCode ( compiled , options , normalizeResults ) ; String explanation = expectedRoot . checkTreeEquals ( root ) ; assertWithMessage ( "\n" + "Expected: " + compiler . toSource ( expectedRoot ) + "\n" + "Result:   " + compiler . toSource ( root ) + "\n" + explanation ) . that ( explanation ) . isNull ( ) ; } }
Asserts that when compiling with the given compiler options,
 {@code original} is transformed into {@code compiled}.
Asserts that when compiling with the given compiler options { @code original } is transformed into { @code compiled } .