We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea29d21 commit 6bdc2ebCopy full SHA for 6bdc2eb
src/style/font/ttf.rs
@@ -307,10 +307,10 @@ mod test {
307
// the test case may be run in parallel. Thus the font cache
308
// may contains other fonts.
309
let _a = load_font_data(FontFamily::Serif, FontStyle::Normal)?;
310
- assert!(CACHE.read().unwrap().contains_key("serif"));
+ assert!(DATA_CACHE.read().unwrap().contains_key("serif"));
311
312
let _b = load_font_data(FontFamily::Serif, FontStyle::Normal)?;
313
314
315
// TODO: Check they are the same
316
0 commit comments