[gtk+] Test the new error conditions



commit 5271106250d27e826d6cfaab095a6f66066b0c29
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Apr 29 15:20:51 2015 -0400

    Test the new error conditions

 testsuite/gtk/Makefile.am        |    2 ++
 testsuite/gtk/ui/image1.expected |    2 ++
 testsuite/gtk/ui/image1.ui       |    6 ++++++
 testsuite/gtk/ui/image2.expected |    2 ++
 testsuite/gtk/ui/image2.ui       |    6 ++++++
 5 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/Makefile.am b/testsuite/gtk/Makefile.am
index f6055f1..ea828ce 100644
--- a/testsuite/gtk/Makefile.am
+++ b/testsuite/gtk/Makefile.am
@@ -228,6 +228,8 @@ test_ui =                                           \
        ui/infobar4.ui ui/infobar4.expected             \
        ui/infobar5.ui ui/infobar5.expected             \
        ui/infobar6.ui ui/infobar6.expected             \
+       ui/image1.ui ui/image1.expected                 \
+       ui/image2.ui ui/image2.expected                 \
        $(NULL)
 
 EXTRA_DIST +=                          \
diff --git a/testsuite/gtk/ui/image1.expected b/testsuite/gtk/ui/image1.expected
new file mode 100644
index 0000000..bc8a435
--- /dev/null
+++ b/testsuite/gtk/ui/image1.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 13
+.:3:29 Object with ID xyzzy not found
diff --git a/testsuite/gtk/ui/image1.ui b/testsuite/gtk/ui/image1.ui
new file mode 100644
index 0000000..a60160b
--- /dev/null
+++ b/testsuite/gtk/ui/image1.ui
@@ -0,0 +1,6 @@
+
+<interface>
+  <object class="GtkButton">
+    <property name="image">xyzzy</property>
+  </object>
+</interface>
diff --git a/testsuite/gtk/ui/image2.expected b/testsuite/gtk/ui/image2.expected
new file mode 100644
index 0000000..4453e7e
--- /dev/null
+++ b/testsuite/gtk/ui/image2.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 13
+.:3:71 Object with ID xyzzy not found
diff --git a/testsuite/gtk/ui/image2.ui b/testsuite/gtk/ui/image2.ui
new file mode 100644
index 0000000..3975b88
--- /dev/null
+++ b/testsuite/gtk/ui/image2.ui
@@ -0,0 +1,6 @@
+
+<interface>
+  <object class="GtkButton">
+    <property name="visible" bind-source="xyzzy" bind-property="ooo"/>
+  </object>
+</interface>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]