()
| 972 | |
| 973 | #[test] |
| 974 | fn test_draw_rect_filled_limits() { |
| 975 | Tester::new(size(2, 3)) |
| 976 | .op(|l| { |
| 977 | l.set_draw_color((50, 51, 52)); |
| 978 | l.draw_rect_filled( |
| 979 | PixelsXY::new(0, 0), |
| 980 | SizeInPixels::new(2, 3), |
| 981 | ) |
| 982 | .unwrap() |
| 983 | }) |
| 984 | .expect_pixel(xy(0, 0), (50, 51, 52)) |
| 985 | .expect_pixel(xy(0, 1), (50, 51, 52)) |
| 986 | .expect_pixel(xy(0, 2), (50, 51, 52)) |
| 987 | .expect_pixel(xy(1, 0), (50, 51, 52)) |
| 988 | .expect_pixel(xy(1, 1), (50, 51, 52)) |
| 989 | .expect_pixel(xy(1, 2), (50, 51, 52)) |
| 990 | .expect_op("set_data: from=(0, 0), to=(1, 2), data=[50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52]") |
| 991 | .check(); |
| 992 | } |
| 993 | |
| 994 | #[test] |
| 995 | fn test_draw_rect_filled_clip() { |
nothing calls this directly
no test coverage detected