mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-28 20:47:15 -06:00
Test: every link of the unsafe-link test sits on the slide
The last links started below the 540 pt slide. They were still exported, as zero-height annotations at the page edge, so the test worked, but only because of that. With all 16 links on the slide the test no longer depends on how off-page links are handled.
This commit is contained in:
@@ -159,7 +159,7 @@ fn unsafe_url_links_are_not_exported() {
|
||||
.zip(safe.iter().chain(&refused))
|
||||
.map(|(i, url)| Shape {
|
||||
id: ShapeId(9000 + i),
|
||||
xfrm: Some(Xfrm::new(20.0, 20.0 + 38.0 * f64::from(i), 400.0, 30.0)),
|
||||
xfrm: Some(Xfrm::new(20.0, 20.0 + 32.0 * f64::from(i), 400.0, 26.0)),
|
||||
click: Some(Hyperlink {
|
||||
action: Action::Url { url: url.to_string() },
|
||||
tooltip: String::new(),
|
||||
|
||||
Reference in New Issue
Block a user