diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-04-20 17:40:09 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-05-02 16:15:41 +0530 |
| commit | 31872258b18e81d5f973080e5130ebf49db3271f (patch) | |
| tree | 6b70d71d2f9d845ffa2798df89010f347040d381 /spec/LuaRuntimeSpec.cpp | |
| parent | b4b6a646b3a7a7f6c7e990c67f208b76f4b5f748 (diff) | |
| download | null-browser-31872258b18e81d5f973080e5130ebf49db3271f.tar.gz null-browser-31872258b18e81d5f973080e5130ebf49db3271f.zip | |
Some more lua api specs
Diffstat (limited to '')
| -rw-r--r-- | spec/LuaRuntimeSpec.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/LuaRuntimeSpec.cpp b/spec/LuaRuntimeSpec.cpp index 97864b2..aeaaab2 100644 --- a/spec/LuaRuntimeSpec.cpp +++ b/spec/LuaRuntimeSpec.cpp @@ -14,6 +14,8 @@ private slots: void cleanupTestCase() { LuaRuntime::instance().stop_event_loop(); } void test_evaluate() { + describe("#evaluate"); + context("when given an expression returning a number"); it("emits evaluation_completed with the result") { auto &lua = LuaRuntime::instance(); @@ -68,6 +70,8 @@ private slots: } void test_queue_task() { + describe("#queue_task"); + context("when task is queued"); it("evaluates task asynchronously") { auto &lua = LuaRuntime::instance(); @@ -81,6 +85,8 @@ private slots: } void test_sanity_check_uv_timer() { + describe("uv timer"); + context("when a 1 second timer is set"); it("calls callback after 1 second") { auto &lua = LuaRuntime::instance(); @@ -101,6 +107,8 @@ private slots: } void test_sanity_check_uv_spawn() { + describe("uv spawn"); + it("calls exit callback when process exists") { auto &lua = LuaRuntime::instance(); QSignalSpy evaluation_completed_spy(&lua, &LuaRuntime::evaluation_completed); |
