tests: Add formatter test

This commit is contained in:
James Westman 2023-09-07 13:00:15 -05:00
parent 461ef19a46
commit 19d0410ea0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
4 changed files with 114 additions and 0 deletions

26
tests/formatting/out.blp Normal file
View file

@ -0,0 +1,26 @@
using Gtk 4.0;
using Adw 1;
Overlay {
Label label {
label: _('\'Hello World!\' "\n\t"');
}
[overlay]
Button {
notify::icon-name => $on_icon_name_changed (label) swapped;
styles ['destructive']
}
visible: bind $isVisible (label.visible, my-menu) as <bool>;
width-request: bind label.width-request no-sync-create;
}
menu my-menu {
item (_('Label'), 'action-name', 'icon-name')
item {
action: 'win.format';
}
}