summaryrefslogtreecommitdiff
path: root/test/window_opacity.py
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
committerGabriel Schneider <[email protected]>2026-10-30 17:35:06 -0300
commit6d8da8721141284cf33bb901168b26135893eb86 (patch)
tree791d63401d4e85fbca1d597a8ce0326e70efd545 /test/window_opacity.py
parentefd43a3a2cf03bb741366331158b368abf9ac583 (diff)
parentbf6810a8f9d6cc82050e7d9c0cfb06358301b574 (diff)
downloadpardes-6d8da8721141284cf33bb901168b26135893eb86.tar.gz
pardes-6d8da8721141284cf33bb901168b26135893eb86.zip
Merge latest upstream into the macOS branch for Zig 0.17
Retain the macOS branch history and local Acme selection color while adopting upstream's current core and platform changes. Pin Zig and ZLS to 0.17.0, and fetch the existing zstbi compatibility commit through upstream after its original fork was removed.
Diffstat (limited to 'test/window_opacity.py')
-rw-r--r--test/window_opacity.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/test/window_opacity.py b/test/window_opacity.py
index b9529373..0253e15c 100644
--- a/test/window_opacity.py
+++ b/test/window_opacity.py
@@ -60,21 +60,21 @@ def run(args):
pane = require(wait_for(lambda: next((serial for serial in panes(client)
if serial not in before), None)), builtin + ' output missing')
text = client.read(f'/pane/{pane}/body').decode()
- client.write(f'/pane/{pane}/ctl', b'exec Del\n')
+ client.write(f'/pane/{pane}/exec', b'Del\n')
return text
help_text = output('Help')
require('WindowOpacity' in help_text and 'FgOpacity' not in help_text,
'help did not replace FgOpacity with WindowOpacity')
- settings = output('Config')
+ settings = output('DumpConfig')
require('WindowOpacity: 100%\n' in settings and 'FgOpacity' not in settings,
- 'initial Config opacity not applied: ' + settings)
+ 'initial DumpConfig opacity not applied: ' + settings)
require('Wayland opacity: background-only transparent surface' in log.read_text(errors='replace'),
'background-only surface path not selected')
report['renderer_path'] = 'background-only transparent surface'
def wait_applied(percent):
- require(wait_for(lambda: f'WindowOpacity: {percent}%\n' in output('Config')),
+ require(wait_for(lambda: f'WindowOpacity: {percent}%\n' in output('DumpConfig')),
'opacity did not apply: ' + str(percent))
geometry = None
@@ -138,10 +138,10 @@ def run(args):
wait_applied(70)
require(samples() == baseline, 'opacity altered editor or terminal core RGB/text')
capture(70)
- settings = output('Config')
+ settings = output('DumpConfig')
require('WindowOpacity: 70%\n' in settings, '70% opacity not applied: ' + settings)
command(client, source, 'WindowOpacity 101')
- require('WindowOpacity: 70%\n' in output('Config'), 'invalid opacity changed state')
+ require('WindowOpacity: 70%\n' in output('DumpConfig'), 'invalid opacity changed state')
command(client, source, 'WindowOpacity 0')
wait_applied(0)
require(samples() == baseline, 'zero opacity altered editor or terminal core RGB/text')
@@ -207,7 +207,7 @@ def run(args):
log.read_text(errors='replace'))
require(all(int(value) == 0xffffffff for value in multipliers),
'whole-window alpha modifier would fade foreground text')
- require('WindowOpacity: 100%\n' in output('Config'), '100% opacity not restored')
+ require('WindowOpacity: 100%\n' in output('DumpConfig'), '100% opacity not restored')
require(source_path.read_bytes() == original == client.read(f'/pane/{source}/body'),
'source contents changed')
client.write(f'/pane/{terminal}/pty/data', b'exit\r')