()
| 881 | |
| 882 | #[test] |
| 883 | fn test_draw_rect_no_sync() { |
| 884 | Tester::new(size(20, 30)) |
| 885 | .op(|l| { |
| 886 | l.set_sync(false); |
| 887 | l.set_draw_color((50, 51, 52)); |
| 888 | l.draw_rect(PixelsXY::new(4, 5), SizeInPixels::new(2, 3)).unwrap() |
| 889 | }) |
| 890 | .expect_pixel(xy(4, 5), (50, 51, 52)) |
| 891 | .expect_pixel(xy(4, 6), (50, 51, 52)) |
| 892 | .expect_pixel(xy(4, 7), (50, 51, 52)) |
| 893 | .expect_pixel(xy(5, 5), (50, 51, 52)) |
| 894 | .expect_pixel(xy(5, 6), (50, 51, 52)) |
| 895 | .expect_pixel(xy(5, 7), (50, 51, 52)) |
| 896 | .expect_damage(xy(4, 5), xy(5, 7)) |
| 897 | .check(); |
| 898 | } |
| 899 | |
| 900 | #[test] |
| 901 | fn test_draw_rect_limits() { |
nothing calls this directly
no test coverage detected