Render tests: the live object tests take the font locks (#1688)

This commit is contained in:
bflatastic committed 2026-10-14 04:56:30 +07:00
1 parent 6504dc7da2
commit caa80fb213
2 files changed
+4

No files matched your search

+2
View File
@@ -111,6 +111,7 @@ fn symbol_type_redraws_when_its_font_becomes_available() {
/// fonts change.
#[test]
fn enveloped_type_redraws_when_its_font_becomes_available() {
let _adding = adding_fonts();
const FAMILY: &str = "Warped Serif 4";
let mut d = Document::new(300.0, 150.0);
let word = |d: &mut Document, at: Point| {
@@ -150,6 +151,7 @@ fn enveloped_type_redraws_when_its_font_becomes_available() {
/// envelope in a group with a geometry effect or with a fill of its own.
#[test]
fn enveloped_type_under_effects_redraws_when_its_font_becomes_available() {
let _adding = adding_fonts();
use vectorcraft_color::{Color, Paint};
use vectorcraft_doc::{AppearanceItem, Effect, FillLayer};
let cases = [
+2
View File
@@ -627,6 +627,7 @@ fn arc_envelope(d: &mut Document, content: Vec<Node>, patterns: bool) -> Node {
/// pattern, and type whose characters are filled with it.
#[test]
fn live_objects_draw_pattern_layout_edits() {
let _fonts = fonts_steady();
use vectorcraft_doc::pattern::{Overlap, PatternDef, TileType, pattern_paint};
use vectorcraft_doc::text::{CharStyle, TextObject};
use vectorcraft_geom::shapes::rectangle;
@@ -672,6 +673,7 @@ fn live_objects_draw_pattern_layout_edits() {
/// the art of the symbol it bends and a symbol in the art of a pattern it tiles.
#[test]
fn live_objects_draw_symbol_and_pattern_art_edits() {
let _fonts = fonts_steady();
use vectorcraft_doc::pattern::{PatternDef, TileType, pattern_paint};
use vectorcraft_geom::shapes::rectangle;
// Symbol `S` ([`symbol_art`]) becomes a wide red bar.