test-maximize: Improve error messages
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
e7232c0dc2
commit
2eef92a891
|
@ -5,6 +5,11 @@ local awful = require("awful")
|
|||
local test_client = require("_client")
|
||||
local lgi = require("lgi")
|
||||
|
||||
local function geo_to_str(g)
|
||||
return "pos=" .. g.x .. "," .. g.y ..
|
||||
";size=" .. g.width .. "x" .. g.height
|
||||
end
|
||||
|
||||
local original_geo = nil
|
||||
|
||||
local steps = {
|
||||
|
@ -68,9 +73,8 @@ local steps = {
|
|||
|
||||
local new_geo = c:geometry()
|
||||
|
||||
for k,v in pairs(original_geo) do
|
||||
assert(new_geo[k] == v)
|
||||
end
|
||||
assert(geo_to_str(original_geo) == geo_to_str(new_geo),
|
||||
geo_to_str(original_geo) .. " == " .. geo_to_str(new_geo))
|
||||
|
||||
c.fullscreen = true
|
||||
|
||||
|
@ -99,9 +103,8 @@ local steps = {
|
|||
|
||||
local new_geo = c:geometry()
|
||||
|
||||
for k,v in pairs(original_geo) do
|
||||
assert(new_geo[k] == v)
|
||||
end
|
||||
assert(geo_to_str(original_geo) == geo_to_str(new_geo),
|
||||
geo_to_str(original_geo) .. " == " .. geo_to_str(new_geo))
|
||||
|
||||
c.floating = true
|
||||
|
||||
|
@ -136,9 +139,8 @@ local steps = {
|
|||
|
||||
local new_geo = c:geometry()
|
||||
|
||||
for k,v in pairs(original_geo) do
|
||||
assert(new_geo[k] == v)
|
||||
end
|
||||
assert(geo_to_str(original_geo) == geo_to_str(new_geo),
|
||||
geo_to_str(original_geo) .. " == " .. geo_to_str(new_geo))
|
||||
|
||||
return true
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue