[gtk+] Add some more builder parser tests



commit 65aa367029188e91260ab27a1b75f716d734677c
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Oct 19 06:13:33 2015 -0400

    Add some more builder parser tests
    
    These tests contain non-canonical and non-existing property names.

 testsuite/gtk/ui/dialog7.expected |    1 +
 testsuite/gtk/ui/dialog7.ui       |   10 ++++++++++
 testsuite/gtk/ui/dialog8.expected |    2 ++
 testsuite/gtk/ui/dialog8.ui       |   10 ++++++++++
 4 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/testsuite/gtk/ui/dialog7.expected b/testsuite/gtk/ui/dialog7.expected
new file mode 100644
index 0000000..ff43ca4
--- /dev/null
+++ b/testsuite/gtk/ui/dialog7.expected
@@ -0,0 +1 @@
+SUCCESS
diff --git a/testsuite/gtk/ui/dialog7.ui b/testsuite/gtk/ui/dialog7.ui
new file mode 100644
index 0000000..07a508b
--- /dev/null
+++ b/testsuite/gtk/ui/dialog7.ui
@@ -0,0 +1,10 @@
+<!-- missing attribute in dialog markup -->
+<interface>
+  <object class="GtkDialog">
+    <child type="action">
+      <object class="GtkButton" id="button_ok">
+        <property name="can_default">1</property>
+      </object>
+    </child>
+  </object>
+</interface>
diff --git a/testsuite/gtk/ui/dialog8.expected b/testsuite/gtk/ui/dialog8.expected
new file mode 100644
index 0000000..222eec3
--- /dev/null
+++ b/testsuite/gtk/ui/dialog8.expected
@@ -0,0 +1,2 @@
+ERROR: gtk-builder-error-quark 11
+.:6:39 Invalid property: GtkButton.cantdefault
diff --git a/testsuite/gtk/ui/dialog8.ui b/testsuite/gtk/ui/dialog8.ui
new file mode 100644
index 0000000..9071da3
--- /dev/null
+++ b/testsuite/gtk/ui/dialog8.ui
@@ -0,0 +1,10 @@
+<!-- missing attribute in dialog markup -->
+<interface>
+  <object class="GtkDialog">
+    <child type="action">
+      <object class="GtkButton" id="button_ok">
+        <property name="cantdefault">1</property>
+      </object>
+    </child>
+  </object>
+</interface>


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