From 41133c9836d3975c0390ff554dc7a6d86a00a16e Mon Sep 17 00:00:00 2001 From: cmertz Date: Wed, 27 Jul 2016 09:50:11 +0200 Subject: [PATCH] test client.border_width restore after fullscreen --- tests/test-maximize.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test-maximize.lua b/tests/test-maximize.lua index bddf693e..a49e74f2 100644 --- a/tests/test-maximize.lua +++ b/tests/test-maximize.lua @@ -41,6 +41,22 @@ local steps = { c.maximized_horizontal = false return true end, + + -- Test restoring client.border_width + function() + local c = client.get()[1] + local test_width = 2 + + c.border_width = test_width + + c.fullscreen = true + c.fullscreen = false + + assert(c.border_width == test_width) + + return true + end, + -- Test restoring a geometry function() local c = client.get()[1]