Integration/regression testing for mod_xrandr
[notion/jeffpc.git] / test / integration / xrandr / 02_removed_display.lua
blob28e90f9d8bd2e6d7d2c68691d7a5cf0ca9e56637
1 mod_xrandr.screenlayoutupdated()
3 if notioncore.find_screen_id(1) then
4 return "New number of screens should be 1, found ", notioncore.find_screen_id(1):name()
5 end
7 if notioncore.find_screen_id(0):mx_count() ~= 2 then
8 return "Remaining screen should have 2 workspaces instead of " .. notioncore.find_screen_id(0):mx_count() ..
9 ': ' .. mx_names(notioncore.find_screen_id(0))
10 end
12 print('Restoring second display and updating layout')
13 mod_xrandr_mock.set_number_of_screens(2)
14 mod_xrandr.screenlayoutupdated()
16 return "ok"