Commit b367d8db authored by Christian Duerr's avatar Christian Duerr Committed by Peter van der meulen

Fix unit tests

The missing `dpi_factor` field has been added to the `SizeInfo`
initializations in the tests.
parent 8ca43611
......@@ -815,6 +815,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let mut terminal = Term::new(&config, size);
......
......@@ -788,6 +788,7 @@ pub struct SizeInfo {
pub padding_y: f32,
/// DPI factor of the current window
#[serde(default)]
pub dpi_factor: f64,
}
......@@ -2020,6 +2021,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let mut term = Term::new(&Default::default(), size);
let mut grid: Grid<Cell> = Grid::new(Line(3), Column(5), 0, Cell::default());
......@@ -2063,6 +2065,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let mut term = Term::new(&Default::default(), size);
let mut grid: Grid<Cell> = Grid::new(Line(1), Column(5), 0, Cell::default());
......@@ -2132,6 +2135,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let mut term = Term::new(&Default::default(), size);
let cursor = Point::new(Line(0), Column(0));
......@@ -2150,6 +2154,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let config: Config = Default::default();
let mut term: Term = Term::new(&config, size);
......@@ -2178,6 +2183,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let config: Config = Default::default();
let mut term: Term = Term::new(&config, size);
......@@ -2197,6 +2203,7 @@ mod tests {
cell_height: 3.0,
padding_x: 0.0,
padding_y: 0.0,
dpi_factor: 1.0,
};
let config: Config = Default::default();
let mut term: Term = Term::new(&config, size);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment