diff options
Diffstat (limited to 'alacritty_terminal/tests/ref.rs')
-rw-r--r-- | alacritty_terminal/tests/ref.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/alacritty_terminal/tests/ref.rs b/alacritty_terminal/tests/ref.rs index 48704fb8..4f8bc74a 100644 --- a/alacritty_terminal/tests/ref.rs +++ b/alacritty_terminal/tests/ref.rs @@ -5,14 +5,13 @@ use std::fs::{self, File}; use std::io::Read; use std::path::Path; -use alacritty_terminal::ansi; -use alacritty_terminal::config::Config; use alacritty_terminal::event::{Event, EventListener}; use alacritty_terminal::grid::{Dimensions, Grid}; use alacritty_terminal::index::{Column, Line}; use alacritty_terminal::term::cell::Cell; use alacritty_terminal::term::test::TermSize; -use alacritty_terminal::term::Term; +use alacritty_terminal::term::{Config, Term}; +use alacritty_terminal::vte::ansi; macro_rules! ref_tests { ($($name:ident)*) => { @@ -105,10 +104,10 @@ fn ref_test(dir: &Path) { let grid: Grid<Cell> = json::from_str(&serialized_grid).unwrap(); let ref_config: RefConfig = json::from_str(&serialized_cfg).unwrap(); - let mut config = Config::default(); - config.scrolling.set_history(ref_config.history_size); + let mut options = Config::default(); + options.scrolling_history = ref_config.history_size as usize; - let mut terminal = Term::new(&config, &size, Mock); + let mut terminal = Term::new(options, &size, Mock); let mut parser: ansi::Processor = ansi::Processor::new(); for byte in recording { |