diff --git a/tests/formatting/correct1.blp b/tests/formatting/correct1.blp index 4646bac..ac71293 100644 --- a/tests/formatting/correct1.blp +++ b/tests/formatting/correct1.blp @@ -1,4 +1,5 @@ using Gtk 4.0; +using Adw 1; template $MyTemplate: Label { /** @@ -15,4 +16,56 @@ template $MyTemplate: Label { object: Button { label: 'Click me'; }; + + flags: a | b; + + [child] + Label { + } + + [child] + Label label2 { + } + + // Single line comment. + + /** + * Multiline comment. + */ + // Single line comment. + value: bind 1.0 as ; + as: 1; + signal => $on_signal() after; +} + +Dialog { + [action response=ok] + $MyButton { + } +} + +menu menu { + item ('test') + + item { + label: 'test'; + } + + item ('test') +} + +Adw.MessageDialog { + responses [ + save: 'Save' suggested disabled, + ] +} + +Adw.Breakpoint { + condition ('width < 100') + + setters { + label2.label: _('Hello, world!'); + label2.visible: false; + label2.extra-menu: null; + } } diff --git a/tests/formatting/out.blp b/tests/formatting/out.blp index a46e62d..f563881 100644 --- a/tests/formatting/out.blp +++ b/tests/formatting/out.blp @@ -8,14 +8,14 @@ Overlay { [overlay] Button { - notify::icon-name => $on_icon_name_changed (label) swapped; + notify::icon-name => $on_icon_name_changed(label) swapped; styles [ 'destructive' ] } - visible: bind $isVisible (label.visible, my-menu) as ; + visible: bind $isVisible(label.visible, my-menu) as ; width-request: bind label.width-request no-sync-create; }