aboutsummaryrefslogtreecommitdiff
path: root/spec/LuaRuntimeSpec.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-05 13:10:43 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-05 13:14:06 +0530
commit1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae (patch)
tree622d1bb48d35f05b17ef69db1b5919be89b86aab /spec/LuaRuntimeSpec.cpp
parent2e051fcc4efcfe6af2d3ef22d6a4ba63c9f1c65d (diff)
downloadnull-browser-1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae.tar.gz
null-browser-1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae.zip
Connected url changed event
Diffstat (limited to '')
-rw-r--r--spec/LuaRuntimeSpec.cpp4
1 files changed, 2 insertions, 2 deletions
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(