File: 03_new_screen_has_ws.lua

package info (click to toggle)
notion 4.0.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,656 kB
  • sloc: ansic: 47,365; sh: 2,093; makefile: 594; perl: 270
file content (20 lines) | stat: -rw-r--r-- 648 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
mod_xrandr.screenlayoutupdated()

if (notioncore.find_screen_id(1) == Nil) then
  return "Number of screens should be 2, again at the start of this test"
end

if (notioncore.find_screen_id(0):mx_count() < 1) then
  return "Screen 0 had no workspaces!"
elseif (notioncore.find_screen_id(1):mx_count() < 1) then
  return "Screen 1 had no workspaces!"
end

if notioncore.find_screen_id(0):mx_nth(0):name() ~= 'WGroupWS' then
  return "First workspace not correctly returned to first screen"
end
if notioncore.find_screen_id(1):mx_nth(0):name() ~= 'WGroupWS<1>' then
  return "Second workspace not correctly returned to second screen"
end

return "ok"