From 6acc98ee7641b91ffa4b1e6fa80b4aa44ccdd340 Mon Sep 17 00:00:00 2001 From: qvest-ssels <214787280+qvest-ssels@users.noreply.github.com> Date: Wed, 25 Nov 2026 09:07:22 +0100 Subject: [PATCH] Give the Layers to Files ICC tests a normal layer Layers to Files now refuses a Background-only document (#13968), so every test in layers_to_files_icc_tests.rs failed on the merge with main. The test document's Background becomes a normal layer, as in the single-layer tests (#13973). --- .../engine-core/src/cmd/file_cmds/layers_to_files_icc_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/engine-core/src/cmd/file_cmds/layers_to_files_icc_tests.rs b/crates/engine-core/src/cmd/file_cmds/layers_to_files_icc_tests.rs index e5512a0e17..a32b976b1c 100644 --- a/crates/engine-core/src/cmd/file_cmds/layers_to_files_icc_tests.rs +++ b/crates/engine-core/src/cmd/file_cmds/layers_to_files_icc_tests.rs @@ -9,6 +9,8 @@ fn session(mode: &str, depth: u32) -> Session { let mut s = crate::session(); s.execute("file.new", json!({"width": 8, "height": 6, "mode": mode, "depth": depth, "background": "backgroundColor", "backgroundColor": [0.8, 0.1, 0.1]})) .unwrap(); + // One normal layer: Layers to Files refuses a Background-only document (#13968). + s.execute("layer.new.layerFromBackground", json!({})).unwrap(); s }