aboutsummaryrefslogtreecommitdiff
path: root/spec/WebViewStackSpec.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-20 17:40:09 +0530
committerAkshay Nair <phenax5@gmail.com>2025-05-02 16:15:41 +0530
commit31872258b18e81d5f973080e5130ebf49db3271f (patch)
tree6b70d71d2f9d845ffa2798df89010f347040d381 /spec/WebViewStackSpec.cpp
parentb4b6a646b3a7a7f6c7e990c67f208b76f4b5f748 (diff)
downloadnull-browser-31872258b18e81d5f973080e5130ebf49db3271f.tar.gz
null-browser-31872258b18e81d5f973080e5130ebf49db3271f.zip
Some more lua api specs
Diffstat (limited to '')
-rw-r--r--spec/WebViewStackSpec.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/WebViewStackSpec.cpp b/spec/WebViewStackSpec.cpp
index 155218e..a63eca6 100644
--- a/spec/WebViewStackSpec.cpp
+++ b/spec/WebViewStackSpec.cpp
@@ -23,6 +23,8 @@ private slots:
void cleanupTestCase() { LuaRuntime::instance().stop_event_loop(); }
void test_initial_state() {
+ describe("constructor");
+
context("when initialized");
it("opens an empty stack maintaining current url") {
Configuration configuration;
@@ -34,6 +36,8 @@ private slots:
}
void test_open_url() {
+ describe("#open_url");
+
context("when openUrl is called with an empty stack");
it("opens a new webview") {
Configuration configuration;
@@ -115,6 +119,8 @@ private slots:
}
void test_close() {
+ describe("#close");
+
context("when close is called");
context("- with invalid id");
it("does nothing") {
@@ -189,6 +195,8 @@ private slots:
}
void test_new_window_request_signal() {
+ describe("signal newWindowRequested");
+
context("when webview emits a newWindowRequested signal");
context("- of type new view");
it("opens a new web view and focuses it") {