Skip to content
Permalink
Browse files

style: Fix unit tests.

  • Loading branch information...
emilio committed Oct 9, 2019
1 parent 031cb05 commit 7b15f33053b4c4e74fbb2e7ffa7f32fab924c63f
Showing with 29 additions and 5 deletions.
  1. +29 −5 tests/unit/style/logical_geometry.rs
@@ -6,20 +6,44 @@ use euclid::{Point2D, Rect, SideOffsets2D, Size2D};
use style::logical_geometry::{LogicalMargin, LogicalPoint, LogicalRect, LogicalSize, WritingMode};

#[cfg(test)]
fn modes() -> [WritingMode; 13] {
fn modes() -> [WritingMode; 21] {
[
WritingMode::empty(),
WritingMode::VERTICAL,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::SIDEWAYS,
WritingMode::VERTICAL | WritingMode::SIDEWAYS,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::VERTICAL_SIDEWAYS,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::TEXT_SIDEWAYS,
WritingMode::VERTICAL |
WritingMode::VERTICAL_LR |
WritingMode::VERTICAL_SIDEWAYS |
WritingMode::TEXT_SIDEWAYS,
WritingMode::VERTICAL | WritingMode::VERTICAL_SIDEWAYS,
WritingMode::VERTICAL | WritingMode::TEXT_SIDEWAYS,
WritingMode::VERTICAL | WritingMode::VERTICAL_SIDEWAYS | WritingMode::TEXT_SIDEWAYS,
WritingMode::VERTICAL | WritingMode::UPRIGHT,
WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::SIDEWAYS | WritingMode::RTL,
WritingMode::VERTICAL |
WritingMode::VERTICAL_LR |
WritingMode::VERTICAL_SIDEWAYS |
WritingMode::RTL,
WritingMode::VERTICAL |
WritingMode::VERTICAL_LR |
WritingMode::TEXT_SIDEWAYS |
WritingMode::RTL,
WritingMode::VERTICAL |
WritingMode::VERTICAL_LR |
WritingMode::VERTICAL_SIDEWAYS |
WritingMode::TEXT_SIDEWAYS |
WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::VERTICAL_LR | WritingMode::UPRIGHT | WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::SIDEWAYS | WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::VERTICAL_SIDEWAYS | WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::TEXT_SIDEWAYS | WritingMode::RTL,
WritingMode::VERTICAL |
WritingMode::VERTICAL_SIDEWAYS |
WritingMode::TEXT_SIDEWAYS |
WritingMode::RTL,
WritingMode::VERTICAL | WritingMode::UPRIGHT | WritingMode::RTL,
]
}

0 comments on commit 7b15f33

Please sign in to comment.
You can’t perform that action at this time.