use of org.eclipse.mylyn.wikitext.parser.css.Block in project mylyn.docs by eclipse.
the class CssParserTest method testComments.
public void testComments() {
Stylesheet stylesheet = parser.parse("tr { /* font-size: 115%; */ font-size: 100%; } /* foo { sdf: sdf; } */");
List<Block> blocks = stylesheet.getBlocks();
assertEquals(1, blocks.size());
Block block = blocks.get(0);
List<CssRule> rules = block.getRules();
assertEquals(1, rules.size());
CssRule rule = rules.get(0);
assertEquals("font-size", rule.name);
assertEquals("100%", rule.value);
}
Aggregations