From 1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sat, 5 Apr 2025 13:10:43 +0530 Subject: Connected url changed event --- spec/LuaRuntimeSpec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'spec/LuaRuntimeSpec.cpp') diff --git a/spec/LuaRuntimeSpec.cpp b/spec/LuaRuntimeSpec.cpp index 9460cae..2a2e5bc 100644 --- a/spec/LuaRuntimeSpec.cpp +++ b/spec/LuaRuntimeSpec.cpp @@ -10,7 +10,7 @@ class TestEvent1 : public BrowserEvent { public: int num; TestEvent1(int num) : num(num) { kind = "TestEvent1"; } - void lua_push(lua_State *state) override { + void lua_push(lua_State *state) const override { lua_newtable(state); SET_FIELD("test_data", integer, num); } @@ -243,7 +243,7 @@ private slots: evaluation_completed_spy.wait(); TestEvent1 event(42); - WindowActionRouter::instance().dispatch_event(event); + WindowActionRouter::instance().dispatch_event(&event); QVERIFY(wait_for_lua_to_be_true("return _G.event1_called")); QVERIFY(wait_for_lua_to_be_true( -- cgit v1.3.1