Add more tests

This commit is contained in:
James Westman 2021-11-04 00:05:38 -05:00
parent 08a74acb37
commit a4b31f2cb0
No known key found for this signature in database
GPG key ID: CE2DBA0ADB654EA6
24 changed files with 89 additions and 8 deletions

View file

@ -0,0 +1,7 @@
using Gtk 4.0;
template TestTemplate : Label {
test-property: Button {
label: "Hello, world!";
};
}

View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="TestTemplate" parent="GtkLabel">
<property name="test-property">
<object class="GtkButton">
<property name="label">Hello, world!</property>
</object>
</property>
</template>
</interface>

View file

@ -1,3 +1,6 @@
using Gtk 4.0;
template TestTemplate : ApplicationWindow {}
template TestTemplate : ApplicationWindow {
test-property: "Hello, world";
test-signal => on_test_signal();
}

View file

@ -1,5 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<template class="TestTemplate" parent="GtkApplicationWindow"></template>
<template class="TestTemplate" parent="GtkApplicationWindow">
<property name="test-property">Hello, world</property>
<signal name="test-signal" handler="on_test_signal"/>
</template>
</interface>

View file

@ -0,0 +1,5 @@
using Gtk 4.0;
Label {
label: _("Hello, world!");
}

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkLabel">
<property name="label" translatable="true">Hello, world!</property>
</object>
</interface>