aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorbbb651 <bar.ye651@gmail.com>2025-01-29 23:43:25 +0200
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-30 07:18:42 +0300
commit34679c75a4735b11a0a42509201e6ea57f260e27 (patch)
tree811269708423f6c5da187dcbea0d3d1e851b4f43 /src/tests
parent1d3820a064f1f3b686eb6e8a1aab155681a96457 (diff)
downloadniri-34679c75a4735b11a0a42509201e6ea57f260e27.tar.gz
niri-34679c75a4735b11a0a42509201e6ea57f260e27.tar.bz2
niri-34679c75a4735b11a0a42509201e6ea57f260e27.zip
misc: Fix typos
Using [`typos`](https://github.com/crate-ci/typos) cli
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/client.rs6
-rw-r--r--src/tests/fixture.rs2
-rw-r--r--src/tests/window_opening.rs4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/tests/client.rs b/src/tests/client.rs
index 531db72c..fff435c1 100644
--- a/src/tests/client.rs
+++ b/src/tests/client.rs
@@ -62,7 +62,7 @@ pub struct Window {
pub viewport: WpViewport,
pub pending_configure: Configure,
pub configures_received: Vec<(u32, Configure)>,
- pub close_requsted: bool,
+ pub close_requested: bool,
pub configures_looked_at: usize,
}
@@ -194,7 +194,7 @@ impl State {
viewport,
pending_configure: Configure::default(),
configures_received: Vec::new(),
- close_requsted: false,
+ close_requested: false,
configures_looked_at: 0,
};
@@ -459,7 +459,7 @@ impl Dispatch<XdgToplevel, ()> for State {
.collect();
}
xdg_toplevel::Event::Close => {
- window.close_requsted = true;
+ window.close_requested = true;
}
xdg_toplevel::Event::ConfigureBounds { width, height } => {
window.pending_configure.bounds = Some((width, height));
diff --git a/src/tests/fixture.rs b/src/tests/fixture.rs
index f7bef77d..1ae9c656 100644
--- a/src/tests/fixture.rs
+++ b/src/tests/fixture.rs
@@ -125,7 +125,7 @@ impl Fixture {
}
}
- /// Rountrip twice in a row.
+ /// Roundtrip twice in a row.
///
/// For some reason, when running tests on many threads at once, a single roundtrip is
/// sometimes not sufficient to get the configure events to the client.
diff --git a/src/tests/window_opening.rs b/src/tests/window_opening.rs
index d1877ac7..17b8d420 100644
--- a/src/tests/window_opening.rs
+++ b/src/tests/window_opening.rs
@@ -339,7 +339,7 @@ window-rule {{
window.ack_last_and_commit();
f.double_roundtrip(id);
- // Commit to the post-intial configures.
+ // Commit to the post-initial configures.
let window = f.client(id).window(&surface);
let new_serial = window.configures_received.last().unwrap().0;
if new_serial != serial {
@@ -582,7 +582,7 @@ window-rule {
window.ack_last_and_commit();
f.double_roundtrip(id);
- // Commit to the post-intial configures.
+ // Commit to the post-initial configures.
let window = f.client(id).window(&surface);
let new_serial = window.configures_received.last().unwrap().0;
if new_serial != serial {