Package com.google.javascript.jscomp.jsonml.SecureCompiler

Examples of com.google.javascript.jscomp.jsonml.SecureCompiler.Report


        "['IdExpr',{'name':'x'}]]]]";

  private void testSuccess(JsonML source) throws Exception {
    SecureCompiler compiler = new SecureCompiler();
    compiler.compile(source);
    Report report = compiler.getReport();
    assertTrue(report.isSuccessful());
    assertEquals(0, report.getErrors().length);
    assertEquals(0, report.getWarnings().length);
  }
View Full Code Here


  }

  private void testError(JsonML source) throws Exception {
    SecureCompiler compiler = new SecureCompiler();
    compiler.compile(source);
    Report report = compiler.getReport();
    assertFalse(report.isSuccessful());
  }
View Full Code Here

TOP

Related Classes of com.google.javascript.jscomp.jsonml.SecureCompiler.Report

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.