tests: Add another template test

This commit is contained in:
James Westman 2023-05-16 17:37:52 -05:00
parent 9e02051e12
commit b5eca8b0b3
3 changed files with 14 additions and 0 deletions

View 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;
}

View 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>

View file

@ -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",