mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-28 17:19:24 +01:00
Export: the export tests install the framework runtime, as main's tests do since #800
This commit is contained in:
1 parent
6b64c5b9af
commit
758474a912
3 files changed
+11
-4
No files matched your search
@@ -1875,7 +1875,7 @@ mod tests {
|
||||
use egui_kittest::Harness;
|
||||
|
||||
let session = texturecraft_engine::sample_session(256, 64).unwrap();
|
||||
let mut harness = Harness::builder().build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
let mut harness = Harness::builder().with_context_setup(crate::framework::install_headless).build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
let app = harness.state_mut();
|
||||
let ts = app.session.ts();
|
||||
let saved = app.session.export_preset("Unreal Engine (Packed)").unwrap();
|
||||
|
||||
@@ -10,7 +10,10 @@ use super::temp_dir::TempDir;
|
||||
#[test]
|
||||
fn ticking_export_shader_settings_writes_the_json_listing_every_exported_set() {
|
||||
let session = texturecraft_engine::sample_session(256, 64).unwrap();
|
||||
let mut h = Harness::builder().with_size(egui::vec2(1600.0, 960.0)).build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
let mut h = Harness::builder()
|
||||
.with_size(egui::vec2(1600.0, 960.0))
|
||||
.with_context_setup(texturecraft_ui_egui::framework::install_headless)
|
||||
.build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
h.state_mut().ui.prefs.language = "en".into();
|
||||
h.run_steps(4);
|
||||
let dir = TempDir::new("export-shader-parameters");
|
||||
|
||||
@@ -3230,8 +3230,12 @@ fn export_window_snapshots() {
|
||||
set.name = format!("Set {}", session.doc.project.texture_sets.len() + 1);
|
||||
session.doc.project.texture_sets.push(set);
|
||||
}
|
||||
let mut harness =
|
||||
Harness::builder().with_size(egui::vec2(1112.0, 662.0)).with_pixels_per_point(2.0).wgpu().build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
let mut harness = Harness::builder()
|
||||
.with_size(egui::vec2(1112.0, 662.0))
|
||||
.with_pixels_per_point(2.0)
|
||||
.with_context_setup(texturecraft_ui_egui::framework::install_headless)
|
||||
.wgpu()
|
||||
.build_eframe(|cc| TextureCraftApp::new(cc, session));
|
||||
harness.state_mut().ui.prefs.language = "en".into();
|
||||
harness.state_mut().ui.prefs.brightness = brightness;
|
||||
harness.set_render_cursor(false);
|
||||
|
||||
Reference in new issue
Block a user