css_ast 0.0.31

CSS Abstract Syntax Trees with visitable nodes and style value types.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#[cfg(test)]
mod tests {
	use super::super::*;
	use crate::CssAtomSet;
	use css_parse::{assert_parse, assert_parse_error, assert_peek_false};

	#[test]
	fn test_writes() {
		assert_parse!(CssAtomSet::ATOMS, OverflowAnchorStyleValue, "auto");
		assert_parse!(CssAtomSet::ATOMS, OverflowAnchorStyleValue, "none");
	}

	#[test]
	fn test_errors() {
		assert_peek_false!(CssAtomSet::ATOMS, OverflowAnchorStyleValue, "all");
		assert_parse_error!(CssAtomSet::ATOMS, OverflowAnchorStyleValue, "auto none");
	}
}