File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed
Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ print('Updating layout when there is 2 screens present')
6767-- remove one, and then leave checking that one was removed up to the next test.
6868mod_xrandr .screenlayoutupdated ()
6969
70- if notioncore .find_screen_id (0 ):mx_count () ~= 1 then
71- return " After updating screen 0 should have 1 workspaces instead of " ..
70+ if notioncore .find_screen_id (0 ):mx_count () ~= 2 then
71+ return " After updating screen 0 should have 2 workspaces instead of " ..
7272 notioncore .find_screen_id (0 ):mx_count () .. " : " .. mx_names (notioncore .find_screen_id (0 ))
7373end
7474if notioncore .find_screen_id (1 ):mx_count () ~= 1 then
Original file line number Diff line number Diff line change 4545
4646mod_xrandr .screenlayoutupdated ()
4747
48- if notioncore .find_screen_id (1 ) then
49- return " New number of screens should be 1, found " , notioncore .find_screen_id (1 ):name ()
48+ if notioncore .find_screen_id (1 ) ~= nil then
49+ return " New number of screens should be 1, found " .. notioncore .find_screen_id (1 ):name ()
5050end
5151
52- if notioncore .find_screen_id (0 ):mx_count () ~= 2 then
53- return " Remaining screen should have 2 workspaces instead of " .. notioncore .find_screen_id (0 ):mx_count () ..
52+ if notioncore .find_screen_id (0 ):mx_count () ~= 3 then
53+ return " Remaining screen should have 3 workspaces instead of " .. notioncore .find_screen_id (0 ):mx_count () ..
5454 ' : ' .. mx_names (notioncore .find_screen_id (0 ))
5555end
5656
Original file line number Diff line number Diff line change 4545
4646mod_xrandr .screenlayoutupdated ()
4747
48- if (notioncore .find_screen_id (1 ) == Nil ) then
48+ if (notioncore .find_screen_id (1 ) == nil ) then
4949 return " Number of screens should be 2, again at the start of this test"
5050end
5151
5858if notioncore .find_screen_id (0 ):mx_nth (0 ):name () ~= ' WGroupWS' then
5959 return " First workspace not correctly returned to first screen"
6060end
61- if notioncore .find_screen_id (1 ):mx_nth (0 ):name () ~= ' WGroupWS<1>' then
62- return " Second workspace not correctly returned to second screen"
61+ if notioncore .find_screen_id (0 ):mx_nth (1 ):name () ~= ' WGroupWS<1>' then
62+ return " Second workspace correctly kept on first screen"
63+ end
64+ if notioncore .find_screen_id (1 ):mx_nth (0 ):name () ~= ' WGroupWS<2>' then
65+ return " Second screen did not get new workspace: " .. notioncore .find_screen_id (1 ):mx_nth (0 ):name ()
6366end
6467
6568return " ok"
You can’t perform that action at this time.
0 commit comments