mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Bug fix, new test
This commit is contained in:
parent
80b5698533
commit
7a65956195
4 changed files with 16 additions and 1 deletions
|
@ -43,7 +43,8 @@ class UI(AstNode):
|
|||
|
||||
for i in self.children[Import]:
|
||||
try:
|
||||
gir_ctx.add_namespace(i.gir_namespace)
|
||||
if i.gir_namespace is not None:
|
||||
gir_ctx.add_namespace(i.gir_namespace)
|
||||
except CompileError as e:
|
||||
self._gir_errors.append(e)
|
||||
|
||||
|
|
5
tests/samples/strings.blp
Normal file
5
tests/samples/strings.blp
Normal file
|
@ -0,0 +1,5 @@
|
|||
using Gtk 4.0;
|
||||
|
||||
Label {
|
||||
label: "Test 1 2 3\n & 4 \"5\" 6";
|
||||
}
|
8
tests/samples/strings.ui
Normal file
8
tests/samples/strings.ui
Normal file
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<requires lib="gtk" version="4.0"/>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Test 1 2 3
|
||||
& 4 "5" 6</property>
|
||||
</object>
|
||||
</interface>
|
|
@ -62,6 +62,7 @@ class TestSamples(unittest.TestCase):
|
|||
self.assert_sample("menu")
|
||||
self.assert_sample("property")
|
||||
self.assert_sample("signal")
|
||||
self.assert_sample("strings")
|
||||
self.assert_sample("style")
|
||||
self.assert_sample("template")
|
||||
self.assert_sample("using")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue