1
0
Fork 0
forked from wry/wry

config: generate graphics-initialized event in the frontend

This commit is contained in:
Julian Orth 2022-05-06 17:15:13 +02:00
parent c30f4d7266
commit 5e21e00059
17 changed files with 56 additions and 29 deletions

View file

@ -0,0 +1,18 @@
use {
crate::it::{test_error::TestResult, testrun::TestRun},
std::rc::Rc,
};
testcase!();
async fn test(run: Rc<TestRun>) -> TestResult {
run.sync().await;
tassert!(!run.cfg.graphics_initialized.get());
run.backend.install_render_context()?;
tassert!(run.cfg.graphics_initialized.get());
Ok(())
}