refactor: name diff orientations vertical and horizontal
This commit is contained in:
+12
-3
@@ -1824,16 +1824,17 @@ end
|
||||
for (mode, orientation, expected_mode, expected_axis) in [
|
||||
(
|
||||
"unified",
|
||||
"above_below",
|
||||
"horizontal",
|
||||
ViewMode::Unified,
|
||||
SplitAxis::Horizontal,
|
||||
),
|
||||
(
|
||||
"split",
|
||||
"above_below",
|
||||
"horizontal",
|
||||
ViewMode::Split,
|
||||
SplitAxis::Horizontal,
|
||||
),
|
||||
("split", "vertical", ViewMode::Split, SplitAxis::Vertical),
|
||||
] {
|
||||
let mut session = fixture.open(&format!(
|
||||
r#"Vamp.configure do |config|
|
||||
@@ -3055,7 +3056,15 @@ end
|
||||
),
|
||||
(
|
||||
r#"config.diff_split_orientation = "invalid""#,
|
||||
"diff split orientation must be left_right or above_below",
|
||||
"diff split orientation must be vertical or horizontal",
|
||||
),
|
||||
(
|
||||
r#"config.diff_split_orientation = "left_right""#,
|
||||
"diff split orientation must be vertical or horizontal",
|
||||
),
|
||||
(
|
||||
r#"config.diff_split_orientation = "above_below""#,
|
||||
"diff split orientation must be vertical or horizontal",
|
||||
),
|
||||
(
|
||||
"config.diff_view_mode = 7",
|
||||
|
||||
Reference in New Issue
Block a user