Package org.mozilla.javascript.ast

Examples of org.mozilla.javascript.ast.FunctionNode.toSource()


    }

    @Test
    public void shouldBuildLineAndConditionRecordingFunction() {
        FunctionNode statement = builder.buildBranchRecordingFunction("test.js", 1, 4, 2);
        assertThat(statement.toSource(), equalTo("function visit1_4_2(result) {\n" +
                "  _$jscoverage['test.js'].branchData['4'][2].ranCondition(result);\n" +
                "  return result;\n" +
                "}"));
    }
}
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.