mirror of
https://github.com/storytold/designcraft.git
synced 2026-11-13 13:52:31 +00:00
Integration: the New Document test checks that Mobile presets have no primary text frame
This commit is contained in:
1 parent
0132523396
commit
dd71077cef
1 file changed
+2
-2
@@ -984,11 +984,11 @@ mod tests {
|
||||
assert_eq!((d.s("width"), d.s("height"), units(d)), ("1920 px".into(), "1080 px".into(), Unit::Pixels), "Web is in pixels");
|
||||
assert!(!d.b("facingPages") && !d.b("primaryTextFrame"));
|
||||
assert_eq!(d.s("name"), "Poster", "the typed name stays");
|
||||
// Mobile is in pixels too.
|
||||
// Mobile is in pixels too, without a primary text frame (its autoflow is an open gap).
|
||||
let texts = settle(&mut app, &ctx);
|
||||
click(&mut app, &ctx, tab(&texts, "Mobile"), 1);
|
||||
let d = app.ui.dialog.as_ref().unwrap();
|
||||
assert_eq!((d.s("tab"), units(d)), ("mobile".into(), Unit::Pixels));
|
||||
assert_eq!((d.s("tab"), units(d), d.b("primaryTextFrame")), ("mobile".into(), Unit::Pixels, false));
|
||||
let texts = settle(&mut app, &ctx);
|
||||
click(&mut app, &ctx, tab(&texts, "Print"), 1);
|
||||
let d = app.ui.dialog.as_ref().unwrap();
|
||||
|
||||
Reference in new issue
Block a user