mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: Test unchecked classes
This commit is contained in:
parent
4cf966eafa
commit
3d4aae79c4
3 changed files with 17 additions and 0 deletions
6
tests/samples/unchecked_class.blp
Normal file
6
tests/samples/unchecked_class.blp
Normal file
|
@ -0,0 +1,6 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
.MyComponent component {
|
||||
.MyComponent2 {
|
||||
}
|
||||
}
|
9
tests/samples/unchecked_class.ui
Normal file
9
tests/samples/unchecked_class.ui
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="MyComponent" id="component">
|
||||
<child>
|
||||
<object class="MyComponent2"></object>
|
||||
</child>
|
||||
</object>
|
||||
</interface>
|
|
@ -154,6 +154,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample("template_no_parent")
|
||||
self.assert_sample("translated")
|
||||
self.assert_sample("uint")
|
||||
self.assert_sample("unchecked_class")
|
||||
self.assert_sample("using")
|
||||
|
||||
|
||||
|
@ -216,3 +217,4 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_decompile("template")
|
||||
self.assert_decompile("translated")
|
||||
self.assert_decompile("using")
|
||||
self.assert_decompile("unchecked_class")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue