From fd4f218c1eb4cdbc96c1ef2086e3390fe26fa63f Mon Sep 17 00:00:00 2001 From: David Skoland Date: Wed, 1 Jun 2022 15:11:43 +0200 Subject: [PATCH] Expose the qtloader object globally MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When testing, we need to query the state of the Qt application, so change the scope of qtloader from inside the init function to global scope. Additionally, adjust the test script accordingly to query and use this state to make good decisions on how to terminate. Change-Id: I6264ba20843716eb87340b160680617b718f6bd9 Reviewed-by: Morten Johan Sørvig --- src/plugins/platforms/wasm/wasm_shell.html | 3 +- util/wasm/wasmtestrunner/qt-wasmtestrunner.py | 32 ++++++++++++------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/src/plugins/platforms/wasm/wasm_shell.html b/src/plugins/platforms/wasm/wasm_shell.html index 9ec18abe5be..ecbce6c0430 100644 --- a/src/plugins/platforms/wasm/wasm_shell.html +++ b/src/plugins/platforms/wasm/wasm_shell.html @@ -29,12 +29,13 @@