mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Run unit tests with both layout 2013 and layout 2020 (#30032)
Since #29950, unit tests were only running with the legacy layout, and there was no way to run them for layout 2020. This patch makes './mach test-unit' run unit tests for both. Also doing some changes so that the layout 2020 floats.rs tests compile.
This commit is contained in:
parent
e0e970af31
commit
e38d21d33d
4 changed files with 8 additions and 12 deletions
|
@ -8,9 +8,9 @@
|
|||
extern crate lazy_static;
|
||||
|
||||
use euclid::num::Zero;
|
||||
use layout::flow::float::{ClearSide, FloatBand, FloatBandNode, FloatBandTree, FloatContext};
|
||||
use layout::flow::float::{ContainingBlockPositionInfo, FloatSide, PlacementInfo};
|
||||
use layout::geom::flow_relative::{Rect, Vec2};
|
||||
use layout_2020::flow::float::{ClearSide, FloatBand, FloatBandNode, FloatBandTree, FloatContext};
|
||||
use layout_2020::flow::float::{ContainingBlockPositionInfo, FloatSide, PlacementInfo};
|
||||
use layout_2020::geom::flow_relative::{Rect, Vec2};
|
||||
use quickcheck::{Arbitrary, Gen};
|
||||
use std::f32;
|
||||
use std::ops::Range;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue