test-awful-placement: s/window/client/g

Use the "client" term consistently instead of using "client" in code and
"window" in comments.

Signed-off-by: Sergey Vlasov <sigprof@gmail.com>
This commit is contained in:
Sergey Vlasov 2019-07-04 16:08:37 +03:00
parent ec8edaf9d5
commit c48d2e5a70
1 changed files with 9 additions and 9 deletions

View File

@ -78,7 +78,7 @@ end
-- Repeat testing 3 times. -- Repeat testing 3 times.
for _, _ in ipairs{1, 2, 3} do for _, _ in ipairs{1, 2, 3} do
-- The first 100x100 window should be placed at the top left corner. -- The first 100x100 client should be placed at the top left corner.
add_client { add_client {
geometry = function(wa) geometry = function(wa)
return { return {
@ -93,8 +93,8 @@ for _, _ in ipairs{1, 2, 3} do
-- Remember the first client data for the current iteration. -- Remember the first client data for the current iteration.
local first_client_data = client_data[#client_data] local first_client_data = client_data[#client_data]
-- The second 100x100 window should be placed to the right of the first -- The second 100x100 client should be placed to the right of the first
-- window. Note that this assumption fails if the screen is in the portrait -- client. Note that this assumption fails if the screen is in the portrait
-- orientation (e.g., the test succeeds with a 600x703 screen and fails with -- orientation (e.g., the test succeeds with a 600x703 screen and fails with
-- 600x704). -- 600x704).
add_client { add_client {
@ -200,7 +200,7 @@ for _, _ in ipairs{1, 2, 3} do
end end
} }
-- The wide window should be placed below the two 100x100 windows. -- The wide client should be placed below the two 100x100 client.
add_client { add_client {
geometry = function(wa) geometry = function(wa)
return { return {
@ -212,9 +212,9 @@ for _, _ in ipairs{1, 2, 3} do
end end
} }
-- The first large window which does not completely fit in any free area -- The first large client which does not completely fit in any free area
-- should be placed at the bottom left corner (no_overlap should place it -- should be placed at the bottom left corner (no_overlap should place it
-- below the wide window, and then no_offscreen should shift it up so that -- below the wide client, and then no_offscreen should shift it up so that
-- it would be completely inside the workarea). -- it would be completely inside the workarea).
add_client { add_client {
geometry = function(wa) geometry = function(wa)
@ -227,7 +227,7 @@ for _, _ in ipairs{1, 2, 3} do
end end
} }
-- The second large window should be placed at the top right corner. -- The second large client should be placed at the top right corner.
add_client { add_client {
geometry = function(wa) geometry = function(wa)
return { return {
@ -239,7 +239,7 @@ for _, _ in ipairs{1, 2, 3} do
end end
} }
-- The third large window should be placed at the bottom right corner. -- The third large client should be placed at the bottom right corner.
add_client { add_client {
geometry = function(wa) geometry = function(wa)
return { return {
@ -251,7 +251,7 @@ for _, _ in ipairs{1, 2, 3} do
end end
} }
-- The fourth large window should be placed at the top left corner (the -- The fourth large client should be placed at the top left corner (the
-- whole workarea is occupied now). -- whole workarea is occupied now).
add_client { add_client {
geometry = function(wa) geometry = function(wa)