Following unit test simply hangs. It would run just fine if a ";" is added at the end of the content to parse:
public void testImport() throws Exception {
final Reader r = new StringReader("@import url('a.css');@import url('c.css')");
final InputSource source = new InputSource(r);
final CSSOMParser parser = new CSSOMParser(new SACParserCSS21());
final CSSStyleSheet sheet = parser.parseStyleSheet(source, null, null);
final CSSRuleList cssRules = sheet.getCssRules();
assertEquals(2, cssRules.getLength());
assertEquals("a.css", ((CSSImportRule) cssRules.item(0)).getHref());
assertEquals("c.css", ((CSSImportRule) cssRules.item(1)).getHref());
}
Anonymous
Now fixed in SVN. Thanks for reporting.