mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-14 19:26:56 -04:00
Render tests: the live object tests take the font locks (#1688)
This commit is contained in:
1 parent
6504dc7da2
commit
caa80fb213
2 files changed
+4
No files matched your search
@@ -111,6 +111,7 @@ fn symbol_type_redraws_when_its_font_becomes_available() {
|
|||||||
/// fonts change.
|
/// fonts change.
|
||||||
#[test]
|
#[test]
|
||||||
fn enveloped_type_redraws_when_its_font_becomes_available() {
|
fn enveloped_type_redraws_when_its_font_becomes_available() {
|
||||||
|
let _adding = adding_fonts();
|
||||||
const FAMILY: &str = "Warped Serif 4";
|
const FAMILY: &str = "Warped Serif 4";
|
||||||
let mut d = Document::new(300.0, 150.0);
|
let mut d = Document::new(300.0, 150.0);
|
||||||
let word = |d: &mut Document, at: Point| {
|
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.
|
/// envelope in a group with a geometry effect or with a fill of its own.
|
||||||
#[test]
|
#[test]
|
||||||
fn enveloped_type_under_effects_redraws_when_its_font_becomes_available() {
|
fn enveloped_type_under_effects_redraws_when_its_font_becomes_available() {
|
||||||
|
let _adding = adding_fonts();
|
||||||
use vectorcraft_color::{Color, Paint};
|
use vectorcraft_color::{Color, Paint};
|
||||||
use vectorcraft_doc::{AppearanceItem, Effect, FillLayer};
|
use vectorcraft_doc::{AppearanceItem, Effect, FillLayer};
|
||||||
let cases = [
|
let cases = [
|
||||||
|
|||||||
@@ -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.
|
/// pattern, and type whose characters are filled with it.
|
||||||
#[test]
|
#[test]
|
||||||
fn live_objects_draw_pattern_layout_edits() {
|
fn live_objects_draw_pattern_layout_edits() {
|
||||||
|
let _fonts = fonts_steady();
|
||||||
use vectorcraft_doc::pattern::{Overlap, PatternDef, TileType, pattern_paint};
|
use vectorcraft_doc::pattern::{Overlap, PatternDef, TileType, pattern_paint};
|
||||||
use vectorcraft_doc::text::{CharStyle, TextObject};
|
use vectorcraft_doc::text::{CharStyle, TextObject};
|
||||||
use vectorcraft_geom::shapes::rectangle;
|
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.
|
/// the art of the symbol it bends and a symbol in the art of a pattern it tiles.
|
||||||
#[test]
|
#[test]
|
||||||
fn live_objects_draw_symbol_and_pattern_art_edits() {
|
fn live_objects_draw_symbol_and_pattern_art_edits() {
|
||||||
|
let _fonts = fonts_steady();
|
||||||
use vectorcraft_doc::pattern::{PatternDef, TileType, pattern_paint};
|
use vectorcraft_doc::pattern::{PatternDef, TileType, pattern_paint};
|
||||||
use vectorcraft_geom::shapes::rectangle;
|
use vectorcraft_geom::shapes::rectangle;
|
||||||
// Symbol `S` ([`symbol_art`]) becomes a wide red bar.
|
// Symbol `S` ([`symbol_art`]) becomes a wide red bar.
|
||||||
|
|||||||
Reference in new issue
Block a user