From b5eca8b0b3b5cf36ee9b619b12a1545390e1bd3f Mon Sep 17 00:00:00 2001 From: James Westman Date: Tue, 16 May 2023 17:37:52 -0500 Subject: [PATCH] tests: Add another template test --- tests/samples/template_id.blp | 6 ++++++ tests/samples/template_id.ui | 7 +++++++ tests/test_samples.py | 1 + 3 files changed, 14 insertions(+) create mode 100644 tests/samples/template_id.blp create mode 100644 tests/samples/template_id.ui diff --git a/tests/samples/template_id.blp b/tests/samples/template_id.blp new file mode 100644 index 0000000..7bdff61 --- /dev/null +++ b/tests/samples/template_id.blp @@ -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; +} \ No newline at end of file diff --git a/tests/samples/template_id.ui b/tests/samples/template_id.ui new file mode 100644 index 0000000..c7791b2 --- /dev/null +++ b/tests/samples/template_id.ui @@ -0,0 +1,7 @@ + + + + + diff --git a/tests/test_samples.py b/tests/test_samples.py index fa628be..34fe45f 100644 --- a/tests/test_samples.py +++ b/tests/test_samples.py @@ -177,6 +177,7 @@ class TestSamples(unittest.TestCase): "template", "template_binding", "template_binding_extern", + "template_id", "template_no_parent", "template_simple_binding", "typeof",