()
| 933 | |
| 934 | #[test] |
| 935 | fn test_draw_rect_filled_sync() { |
| 936 | Tester::new(size(20, 30)) |
| 937 | .op(|l| { |
| 938 | l.set_draw_color((50, 51, 52)); |
| 939 | l.draw_rect_filled( |
| 940 | PixelsXY::new(4, 5), |
| 941 | SizeInPixels::new(2, 3), |
| 942 | ) |
| 943 | .unwrap() |
| 944 | }) |
| 945 | .expect_pixel(xy(4, 5), (50, 51, 52)) |
| 946 | .expect_pixel(xy(4, 6), (50, 51, 52)) |
| 947 | .expect_pixel(xy(4, 7), (50, 51, 52)) |
| 948 | .expect_pixel(xy(5, 5), (50, 51, 52)) |
| 949 | .expect_pixel(xy(5, 6), (50, 51, 52)) |
| 950 | .expect_pixel(xy(5, 7), (50, 51, 52)) |
| 951 | .expect_op("set_data: from=(4, 5), to=(5, 7), data=[50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52, 50, 51, 52]") |
| 952 | .check(); |
| 953 | } |
| 954 | |
| 955 | #[test] |
| 956 | fn test_draw_rect_filled_no_sync() { |
nothing calls this directly
no test coverage detected