assertNull("AST -> JsonML converter returned incorrect result for " + js +
"\n" + explanation, explanation);
}
private void testConversion(String js) throws Exception {
JsonML jsonml = JsonMLParser.parse(js);
Node root = parseExpectedJs(js);
Node ast = root.getFirstChild();
Preconditions.checkState(ast.getType() == Token.SCRIPT);
testJsonMLToAstConversion(ast, jsonml, js);