DesignCraft: An open-source page and layout design editor written by scratch in pure Rust
Integration: #1676 the Insert Table limits test uses the limits, not sizes above them
aionggbaf6e1b85e07
diff --git a/crates/engine/src/tests/table.rs b/crates/engine/src/tests/table.rsindex c31a63dd4..77bcb9bfd 100644--- a/crates/engine/src/tests/table.rs+++ b/crates/engine/src/tests/table.rs@@ -503,7 +503,10 @@ fn insert_table_with_a_style_is_one_step() {assert!(s.execute("table.insert", &json!({"tableStyle": bad})).is_err(), "{bad}");}assert!(s.doc().unwrap().doc.story(designcraft_doc::StoryId(sid)).unwrap().tables.is_empty());- let r = s.execute("table.insert", &json!({"rows": 900, "cols": 300, "headerRows": 150, "tableStyle": "Grid"})).unwrap();+ for over in [json!({"rows": 501}), json!({"cols": 201}), json!({"headerRows": 101})] {+ assert!(s.execute("table.insert", &over).is_err(), "{over}");+ }+ let r = s.execute("table.insert", &json!({"rows": 500, "cols": 200, "headerRows": 100, "tableStyle": "Grid"})).unwrap();let t = s.execute("table.get", &json!({"table": r["table"]})).unwrap();assert_eq!(t["style"], "Grid");let n = |k: &str| t[k].as_array().unwrap().len() as u64;