[gtk+] Add some more builder tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Add some more builder tests
- Date: Tue, 4 Nov 2014 00:07:27 +0000 (UTC)
commit 824fa0314d76ce29292b0c2f99f91d2dd2c57b0b
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Nov 3 19:01:57 2014 -0500
Add some more builder tests
testsuite/gtk/Makefile.am | 15 +++++++--------
testsuite/gtk/ui/test5.expected | 1 +
testsuite/gtk/ui/test5.ui | 7 +++++++
testsuite/gtk/ui/test6.expected | 2 ++
testsuite/gtk/ui/test6.ui | 6 ++++++
testsuite/gtk/ui/test7.expected | 2 ++
testsuite/gtk/ui/test7.ui | 6 ++++++
7 files changed, 31 insertions(+), 8 deletions(-)
---
diff --git a/testsuite/gtk/Makefile.am b/testsuite/gtk/Makefile.am
index 728c379..8628654 100644
--- a/testsuite/gtk/Makefile.am
+++ b/testsuite/gtk/Makefile.am
@@ -163,14 +163,13 @@ test_icontheme = \
$(NULL)
test_ui = \
- ui/test1.ui \
- ui/test1.expected \
- ui/test2.ui \
- ui/test2.expected \
- ui/test3.ui \
- ui/test3.expected \
- ui/test4.ui \
- ui/test4.expected \
+ ui/test1.ui ui/test1.expected \
+ ui/test2.ui ui/test2.expected \
+ ui/test3.ui ui/test3.expected \
+ ui/test4.ui ui/test4.expected \
+ ui/test5.ui ui/test5.expected \
+ ui/test6.ui ui/test6.expected \
+ ui/test7.ui ui/test7.expected \
$(NULL)
EXTRA_DIST += \
diff --git a/testsuite/gtk/ui/test5.expected b/testsuite/gtk/ui/test5.expected
new file mode 100644
index 0000000..ff43ca4
--- /dev/null
+++ b/testsuite/gtk/ui/test5.expected
@@ -0,0 +1 @@
+SUCCESS
diff --git a/testsuite/gtk/ui/test5.ui b/testsuite/gtk/ui/test5.ui
new file mode 100644
index 0000000..8d3c723
--- /dev/null
+++ b/testsuite/gtk/ui/test5.ui
@@ -0,0 +1,7 @@
+<interface>
+ <object class="GtkBox" id="foo">
+ </object>
+ <object class="GtkBox" id="bar">
+ <property name="visible" bind-source="foo" bind-property="visible"
bind-flags="invert-boolean|sync-create"/>
+ </object>
+</interface>
diff --git a/testsuite/gtk/ui/test6.expected b/testsuite/gtk/ui/test6.expected
new file mode 100644
index 0000000..2acd0d0
--- /dev/null
+++ b/testsuite/gtk/ui/test6.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 8
+Duplicate object ID 'foo' on line 5 (previously on line 3)
diff --git a/testsuite/gtk/ui/test6.ui b/testsuite/gtk/ui/test6.ui
new file mode 100644
index 0000000..71d37e7
--- /dev/null
+++ b/testsuite/gtk/ui/test6.ui
@@ -0,0 +1,6 @@
+<interface>
+ <object class="GtkBox" id="foo">
+ </object>
+ <object class="GtkBox" id="foo">
+ </object>
+</interface>
diff --git a/testsuite/gtk/ui/test7.expected b/testsuite/gtk/ui/test7.expected
new file mode 100644
index 0000000..df08169
--- /dev/null
+++ b/testsuite/gtk/ui/test7.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 4
+<input>:4:1 'object' is not a valid tag here
diff --git a/testsuite/gtk/ui/test7.ui b/testsuite/gtk/ui/test7.ui
new file mode 100644
index 0000000..553e3d6
--- /dev/null
+++ b/testsuite/gtk/ui/test7.ui
@@ -0,0 +1,6 @@
+<interface>
+ <object class="GtkBox">
+ <object class="GtkBox">
+ </object>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]