mirror of
https://github.com/storytold/gridcraft.git
synced 2026-12-02 02:33:55 -06:00
Tests: restore the data validation dialog test the rebase dropped (#1822)
This commit is contained in:
@@ -3800,6 +3800,16 @@ mod tests {
|
||||
assert!(gridcraft_engine::cmd::data::check_validation(&doc.wb, 0, at, "4").is_some());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn data_validation_without_a_rule_opens_on_a_blank_list() {
|
||||
let mut session = gridcraft_engine::Session::default();
|
||||
session.new_workbook();
|
||||
let mut app = SheetApp::new(session, Default::default());
|
||||
let d = Dialog::open(&mut app, "dataValidation", json!({})).unwrap();
|
||||
assert_eq!(d.values["type"], "list");
|
||||
assert!(d.values.get("formula1").is_none());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn formula_rule_picks_references_and_keeps_the_opening_range() {
|
||||
let mut session = gridcraft_engine::Session::default();
|
||||
|
||||
Reference in New Issue
Block a user