Switch column-count to use predefined integer type

This commit is contained in:
Xidorn Quan 2017-03-17 17:52:45 +11:00
parent 9233882d49
commit ab0e5c9d99
5 changed files with 22 additions and 93 deletions

View file

@ -557,13 +557,12 @@ mod shorthand_serialization {
#[test]
fn columns_should_serialize_correctly() {
use style::properties::longhands::column_count::SpecifiedValue as ColumnCount;
use style::values::{Auto, Either};
let mut properties = Vec::new();
let width = Either::Second(Auto);
let count = ColumnCount::Auto;
let count = Either::Second(Auto);
properties.push(PropertyDeclaration::ColumnWidth(width));
properties.push(PropertyDeclaration::ColumnCount(count));