Integration/regression testing for mod_xrandr
[notion/jeffpc.git] / test / integration / xrandr / 03_new_screen_has_ws.lua
blob6f208d8a83ca2a116ff5e6cdbb9d591dfeda8f49
1 mod_xrandr.screenlayoutupdated()
3 if (notioncore.find_screen_id(1) == Nil) then
4 return "Number of screens should be 2, again at the start of this test"
5 end
7 if (notioncore.find_screen_id(0):mx_count() < 1) then
8 return "Screen 0 had no workspaces!"
9 elseif (notioncore.find_screen_id(1):mx_count() < 1) then
10 return "Screen 1 had no workspaces!"
11 end
13 if notioncore.find_screen_id(0):mx_nth(0):name() ~= 'WGroupWS' then
14 return "First workspace not correctly returned to first screen"
15 end
16 if notioncore.find_screen_id(1):mx_nth(0):name() ~= 'WGroupWS<1>' then
17 return "Second workspace not correctly returned to second screen"
18 end
20 return "ok"