We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b2fff5 commit dca23d5Copy full SHA for dca23d5
src/session/tests.rs
@@ -673,9 +673,25 @@ fn save_snapshot_skips_backup_when_disabled() {
673
let session_path = options.session_file_path();
674
fs::write(&session_path, b"old-session").expect("write old session");
675
676
+ let mut frame = Frame::new();
677
+ frame.add_shape(Shape::Rect {
678
+ x: 0,
679
+ y: 0,
680
+ w: 5,
681
+ h: 5,
682
+ fill: false,
683
+ color: Color {
684
+ r: 0.0,
685
+ g: 0.0,
686
+ b: 0.0,
687
+ a: 1.0,
688
+ },
689
+ thick: 1.0,
690
+ });
691
+
692
let snapshot = SessionSnapshot {
693
active_mode: BoardMode::Transparent,
- transparent: Some(Frame::new()),
694
+ transparent: Some(frame),
695
whiteboard: None,
696
blackboard: None,
697
tool_state: None,
0 commit comments