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).
This commit is contained in:
qvest-ssels committed 2026-11-25 09:07:22 +01:00
1 parent 8f73a64324
commit 6acc98ee76
1 file changed
+2
@@ -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
}