1
0
Fork 0
forked from wry/wry
wry/src/it/tests/t0013_graphics_initialized.rs
2024-09-02 15:56:09 +02:00

18 lines
336 B
Rust

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(false)?;
tassert!(run.cfg.graphics_initialized.get());
Ok(())
}