File: 03_new_screen_has_ws.lua

package info (click to toggle)
notion 4.0.2%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,676 kB
  • sloc: ansic: 47,508; sh: 2,096; makefile: 603; 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"