throws Exception {
StringBuilder sb = new StringBuilder();
TokenConsumer tc = new JsMinimalPrinter(sb);
RenderContext rc = new RenderContext(tc);
js(fromString(code)).children().get(0).render(rc);
tc.noMoreTokens();
assertEquals(code, expectedRendering, sb.toString());
}
private static void log(String testName, String code) {
System.err.println();