diff --git a/bench/tests/src/hello_world.rs b/bench/tests/src/hello_world.rs index 030faabf9..452b6dc66 100644 --- a/bench/tests/src/hello_world.rs +++ b/bench/tests/src/hello_world.rs @@ -22,12 +22,15 @@ fn main() -> wry::Result<()> { let event_loop = EventLoop::new(); let window = WindowBuilder::new().build(&event_loop).unwrap(); - let url = r#"data:text/html, + let html = r#" + + + "#; let handler = |req: Request| { @@ -56,7 +59,7 @@ fn main() -> wry::Result<()> { let vbox = window.default_vbox().unwrap(); WebViewBuilder::new_gtk(vbox) }; - let _webview = builder.with_url(url).with_ipc_handler(handler).build()?; + let _webview = builder.with_html(html).with_ipc_handler(handler).build()?; event_loop.run(move |event, _, control_flow| { *control_flow = ControlFlow::Wait;