| 43 | } |
| 44 | |
| 45 | TEST(SvgRaster, ChannelIconRasterizesAtQtSize) { |
| 46 | // The legacy Qt frontend drew channel icons at 10x10 logical (see tag |
| 47 | // legacy-qt); x2 = a 2.0 content scale. |
| 48 | const auto px = |
| 49 | oid::host::rasterize_svg(oid::host::icons::kLabelRedChannelSvg, |
| 50 | sizeof(oid::host::icons::kLabelRedChannelSvg), |
| 51 | 20, |
| 52 | 20); |
| 53 | ASSERT_EQ(px.size(), 20u * 20u * 4u); |
| 54 | EXPECT_TRUE(has_nonzero_alpha(px)); |
| 55 | } |
| 56 | |
| 57 | TEST(SvgRaster, LowerUpperBoundRasterizesNonSquare) { |
| 58 | // Qt size 8x35 (setVectorIcon call), x2. |
nothing calls this directly
no test coverage detected