mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
tests: Add another template test
This commit is contained in:
parent
9e02051e12
commit
b5eca8b0b3
3 changed files with 14 additions and 0 deletions
6
tests/samples/template_id.blp
Normal file
6
tests/samples/template_id.blp
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
using Gtk 4.0;
|
||||||
|
|
||||||
|
template $MyTemplate : Gtk.Button {
|
||||||
|
/* this makes no actual sense, but it tests what I want to test */
|
||||||
|
child: template;
|
||||||
|
}
|
7
tests/samples/template_id.ui
Normal file
7
tests/samples/template_id.ui
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<interface>
|
||||||
|
<requires lib="gtk" version="4.0"/>
|
||||||
|
<template class="MyTemplate" parent="GtkButton">
|
||||||
|
<property name="child">MyTemplate</property>
|
||||||
|
</template>
|
||||||
|
</interface>
|
|
@ -177,6 +177,7 @@ class TestSamples(unittest.TestCase):
|
||||||
"template",
|
"template",
|
||||||
"template_binding",
|
"template_binding",
|
||||||
"template_binding_extern",
|
"template_binding_extern",
|
||||||
|
"template_id",
|
||||||
"template_no_parent",
|
"template_no_parent",
|
||||||
"template_simple_binding",
|
"template_simple_binding",
|
||||||
"typeof",
|
"typeof",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue