tests/binds: Print events before any ops too
Browse files at this commit3c6e215cc87e890b398c485e69c5d708368b436eParent: eb9e0291 changed file +3 -0
- src/tests/binds.rs +3 -0
src/tests/binds.rsmodified+3 -0
| @@ -78,6 +78,9 @@ fn run_f(f: &mut Fixture, id: ClientId, surface: &WlSurface, input: &str) -> Str | |||
| 78 | }); | 78 | }); |
| 79 | 79 | ||
| 80 | let mut rv = String::new(); | 80 | let mut rv = String::new(); |
| 81 | + for event in f.client(id).state.recent_keyboard_events(surface) { | ||
| 82 | + let _ = writeln!(&mut rv, " surface {event}"); | ||
| 83 | + } | ||
| 81 | 84 | ||
| 82 | for op in ops { | 85 | for op in ops { |
| 83 | let (code, key_state) = match op { | 86 | let (code, key_state) = match op { |