Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.AstRoot.debugPrint()


  public void testParseComplexStuff() throws Exception {
    Reader source = new InputStreamReader(
        this.getClass().getResourceAsStream("browser_debug.js"));
    Parser parser = new Parser();
    AstRoot ast = parser.parse(source, "browser_debug.js", 1);
    String debugString = ast.debugPrint();
    assertTrue(debugString.contains("getRequiresAndProvides"));
    assertTrue(debugString.contains("ARRAYLIT"));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.