mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Format the Gradient color-mode engine fixtures
This commit is contained in:
1 parent
0ff5767a21
commit
b342bf0d45
1 file changed
+4
-21
@@ -19,14 +19,8 @@ fn drag() -> Value {
|
||||
#[test]
|
||||
fn unsupported_modes_refuse_without_changing_the_document() {
|
||||
let cases = [
|
||||
(
|
||||
ColorMode::Indexed,
|
||||
"Could not use the gradient tool because it does not work with Indexed Color images (convert image to RGB Color mode to edit).",
|
||||
),
|
||||
(
|
||||
ColorMode::Bitmap,
|
||||
"Could not use the gradient tool because it does not work with Bitmap images (convert image to Grayscale mode to edit).",
|
||||
),
|
||||
(ColorMode::Indexed, "Could not use the gradient tool because it does not work with Indexed Color images (convert image to RGB Color mode to edit)."),
|
||||
(ColorMode::Bitmap, "Could not use the gradient tool because it does not work with Bitmap images (convert image to Grayscale mode to edit)."),
|
||||
(
|
||||
ColorMode::Multichannel,
|
||||
"Could not use the gradient tool because it does not work with Multichannel images (convert image to RGB Color mode to edit).",
|
||||
@@ -60,19 +54,8 @@ fn other_modes_keep_creating_gradient_fill_layers() {
|
||||
use ColorMode::{Cmyk, Duotone, Grayscale, Lab, Rgb};
|
||||
use SampleType::{F32, U8, U16};
|
||||
|
||||
let cases = [
|
||||
(Rgb, U8),
|
||||
(Rgb, U16),
|
||||
(Rgb, F32),
|
||||
(Grayscale, U8),
|
||||
(Grayscale, U16),
|
||||
(Grayscale, F32),
|
||||
(Cmyk, U8),
|
||||
(Cmyk, U16),
|
||||
(Lab, U8),
|
||||
(Lab, U16),
|
||||
(Duotone, U8),
|
||||
];
|
||||
let cases =
|
||||
[(Rgb, U8), (Rgb, U16), (Rgb, F32), (Grayscale, U8), (Grayscale, U16), (Grayscale, F32), (Cmyk, U8), (Cmyk, U16), (Lab, U8), (Lab, U16), (Duotone, U8)];
|
||||
|
||||
for (mode, depth) in cases {
|
||||
let mut session = session(mode, depth);
|
||||
|
||||
Reference in new issue
Block a user