// good
}
}
public void testFromLocalizable() throws Exception {
Localizable l = new TestLocalizable();
HtmlClosures.fromLocalizable(l).write(out, createGxpContext(Locale.US, false));
assertOutputEquals("[toString(en_US)]");
HtmlClosures.fromLocalizable(l).write(out, createGxpContext(Locale.UK, false));
assertOutputEquals("[toString(en_GB)]");
// test proper escaping
l = new Localizable() {
public String toString(Locale locale) {
return "foo < bar > baz & qux \" quux ' quuux";
}
};