From 994034934e217bb07e013b6574f123861e73676e Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 24 Jun 2019 23:56:29 -0400 Subject: [PATCH] tests: Test `s:split()`. --- tests/examples/awful/screen/split1.lua | 9 +++++++++ tests/examples/awful/screen/split2.lua | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 tests/examples/awful/screen/split1.lua create mode 100644 tests/examples/awful/screen/split2.lua diff --git a/tests/examples/awful/screen/split1.lua b/tests/examples/awful/screen/split1.lua new file mode 100644 index 00000000..e1874c9e --- /dev/null +++ b/tests/examples/awful/screen/split1.lua @@ -0,0 +1,9 @@ +--DOC_GEN_IMAGE --DOC_HIDE --DOC_NO_USAGE + +require("awful.screen") --DOC_HIDE + +screen[1]._resize {x = 95, width = 256, height = 108} --DOC_HIDE + + screen[1]:split({1/5, 3/5, 1/5}) + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80 diff --git a/tests/examples/awful/screen/split2.lua b/tests/examples/awful/screen/split2.lua new file mode 100644 index 00000000..82e75c0d --- /dev/null +++ b/tests/examples/awful/screen/split2.lua @@ -0,0 +1,9 @@ +--DOC_GEN_IMAGE --DOC_HIDE --DOC_NO_USAGE + +require("awful.screen") --DOC_HIDE + +screen[1]._resize {x = 175, width = 108, height = 198} --DOC_HIDE + + screen[1]:split() + +--DOC_HIDE vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80