mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Change the way values work
Change the parsing for values to make them more reusable, in particular for when I implement extensions.
This commit is contained in:
parent
6938267952
commit
1df46b5a06
30 changed files with 707 additions and 291 deletions
|
@ -1 +1 @@
|
|||
4,3,21,Cannot assign Gtk.Label to Gtk.Adjustment
|
||||
4,15,8,Cannot assign Gtk.Label to Gtk.Adjustment
|
||||
|
|
2
tests/sample_errors/warn_old_bind.err
Normal file
2
tests/sample_errors/warn_old_bind.err
Normal file
|
@ -0,0 +1,2 @@
|
|||
4,12,4,Use 'bind-property', introduced in blueprint 0.8.0, to use binding flags
|
||||
6,12,4,Use 'bind-property', introduced in blueprint 0.8.0, to use binding flags
|
11
tests/samples/property_binding.blp
Normal file
11
tests/samples/property_binding.blp
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind-property box2.visible inverted;
|
||||
orientation: bind box2.orientation;
|
||||
spacing: bind-property box2.spacing no-sync-create;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
spacing: 6;
|
||||
}
|
11
tests/samples/property_binding_dec.blp
Normal file
11
tests/samples/property_binding_dec.blp
Normal file
|
@ -0,0 +1,11 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Box {
|
||||
visible: bind-property box2.visible inverted;
|
||||
orientation: bind-property box2.orientation;
|
||||
spacing: bind-property box2.spacing no-sync-create;
|
||||
}
|
||||
|
||||
Box box2 {
|
||||
spacing: 6;
|
||||
}
|
|
@ -145,7 +145,6 @@ class TestSamples(unittest.TestCase):
|
|||
def test_samples(self):
|
||||
self.assert_sample("accessibility")
|
||||
self.assert_sample("action_widgets")
|
||||
self.assert_sample("binding")
|
||||
self.assert_sample("child_type")
|
||||
self.assert_sample("combo_box_text")
|
||||
self.assert_sample("comments")
|
||||
|
@ -163,6 +162,7 @@ class TestSamples(unittest.TestCase):
|
|||
"parseable", skip_run=True
|
||||
) # The image resource doesn't exist
|
||||
self.assert_sample("property")
|
||||
self.assert_sample("property_binding")
|
||||
self.assert_sample("signal", skip_run=True) # The callback doesn't exist
|
||||
self.assert_sample("size_group")
|
||||
self.assert_sample("string_list")
|
||||
|
@ -235,12 +235,12 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample_error("two_templates")
|
||||
self.assert_sample_error("uint")
|
||||
self.assert_sample_error("using_invalid_namespace")
|
||||
self.assert_sample_error("warn_old_bind")
|
||||
self.assert_sample_error("warn_old_extern")
|
||||
self.assert_sample_error("widgets_in_non_size_group")
|
||||
|
||||
def test_decompiler(self):
|
||||
self.assert_decompile("accessibility_dec")
|
||||
self.assert_decompile("binding")
|
||||
self.assert_decompile("child_type")
|
||||
self.assert_decompile("file_filter")
|
||||
self.assert_decompile("flags")
|
||||
|
@ -248,6 +248,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_decompile("layout_dec")
|
||||
self.assert_decompile("menu_dec")
|
||||
self.assert_decompile("property")
|
||||
self.assert_decompile("property_binding_dec")
|
||||
self.assert_decompile("placeholder_dec")
|
||||
self.assert_decompile("signal")
|
||||
self.assert_decompile("strings")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue