add test fixtures
This commit is contained in:
parent
b3e477ed18
commit
5db7b4ada1
42 changed files with 6332 additions and 0 deletions
13
examples/test/src/window.rs
Normal file
13
examples/test/src/window.rs
Normal file
|
@ -0,0 +1,13 @@
|
|||
use anyhow::ensure;
|
||||
use tauri_sys::window;
|
||||
|
||||
pub async fn create_window() -> anyhow::Result<()> {
|
||||
let win = window::WebviewWindow::new("foo", ());
|
||||
|
||||
ensure!(win.is_visible().await);
|
||||
// ensure!(win.label() == "foo".to_string());
|
||||
|
||||
win.close().await;
|
||||
|
||||
Ok(())
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue