()
| 954 | |
| 955 | #[test] |
| 956 | fn test_draw_rect_filled_no_sync() { |
| 957 | Tester::new(size(20, 30)) |
| 958 | .op(|l| { |
| 959 | l.set_draw_color((50, 51, 52)); |
| 960 | l.set_sync(false); |
| 961 | l.draw_rect_filled(PixelsXY::new(4, 5), SizeInPixels::new(2, 3)).unwrap() |
| 962 | }) |
| 963 | .expect_pixel(xy(4, 5), (50, 51, 52)) |
| 964 | .expect_pixel(xy(4, 6), (50, 51, 52)) |
| 965 | .expect_pixel(xy(4, 7), (50, 51, 52)) |
| 966 | .expect_pixel(xy(5, 5), (50, 51, 52)) |
| 967 | .expect_pixel(xy(5, 6), (50, 51, 52)) |
| 968 | .expect_pixel(xy(5, 7), (50, 51, 52)) |
| 969 | .expect_damage(xy(4, 5), xy(5, 7)) |
| 970 | .check(); |
| 971 | } |
| 972 | |
| 973 | #[test] |
| 974 | fn test_draw_rect_filled_limits() { |
nothing calls this directly
no test coverage detected