testsuite: Update buildertool tests

gtk-builder-tool simplify --3to4 now produces a
<requires lib="gtk" version="4.0"/>.
Adapt for that, and also add some tests that check that we
actually verify the requires, and accept 3.99 and 4.0, but
not 5.x.
This commit is contained in:
Matthias Clasen 2020-11-10 19:20:51 -05:00
parent 7215c74933
commit d6a0948182
34 changed files with 32 additions and 18 deletions

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkActionBar">
<property name="visible">0</property>
<child type="start">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkActionBar">
<child>
<object class="GtkButton" id="button">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkAssistant" id="window1">
<child>
<object class="GtkAssistantPage">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkAssistant" id="window1">
<child>
<object class="GtkButton" id="button1">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkFrame">
<property name="visible">0</property>
<property name="label">bla</property>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow">
<property name="child">
<object class="GtkBox">

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.2 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkWindow">
<child>
<object class="GtkBox">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<object class="GtkDialog">
<requires lib="gtk" version="4.0"/>
<child internal-child="content_area">
<object class="GtkBox">
<property name="visible">0</property>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkFixed">
<child>
<object class="GtkButton" id="button">

View File

@ -1,7 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.22.2 -->
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkFixed">
<property name="visible">True</property>
<child>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow" id="window1">
<property name="child">
<object class="GtkGrid" id="grid1">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkGrid" id="grid1">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
<requires lib="gtk" version="4.0"/>
<template class="GtkFileChooserDialog" parent="GtkDialog">
<property name="role">GtkFileChooserDialog</property>
<property name="type-hint">dialog</property>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="gtk30">
<!-- interface-requires gtk+ 3.10 -->
<template class="GtkFileChooserDialog" parent="GtkDialog">
<property name="role">GtkFileChooserDialog</property>
<property name="type-hint">dialog</property>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow" id="window1">
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar1">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<child type="titlebar">
<object class="GtkHeaderBar" id="headerbar1">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface domain="nm-applet">
<requires lib="gtk" version="4.0"/>
<object class="GtkAssistant">
<child>
<object class="GtkAssistantPage">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow" id="window1">
<property name="child">
<object class="GtkNotebook" id="notebook1">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkNotebook" id="notebook1">

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow" id="window1">
<property name="border_width">12</property>
<property name="title" translatable="yes">Office Runner</property>

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<property name="border_width">12</property>
<property name="title" translatable="yes">Office Runner</property>

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkOverlay">
<child type="overlay">
<object class="GtkButton" id="button">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkPaned">
<property name="resize-end-child">0</property>
<property name="shrink-start-child">0</property>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkPopover" id="popover">
<property name="autohide">0</property>
</object>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkScale">
<property name="draw-value">1</property>
<property name="visible">0</property>

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow" id="window1">
<property name="child">
<object class="GtkBox" id="box1">

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<!-- interface-requires gtk+ 3.0 -->
<object class="GtkWindow" id="window1">
<child>
<object class="GtkBox" id="box1">

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<interface>
<requires lib="gtk" version="3.0"/>
<requires lib="gtk" version="4.0"/>
<object class="GtkBox">
<style>
<class name="toolbar"/>

View File

@ -0,0 +1 @@
invalid5.ui:3:1 Required GTK version 5.10, current version is 3.99

View File

@ -0,0 +1,3 @@
<interface>
<requires lib="gtk" version="5.10"/>
</interface>

View File

@ -0,0 +1,5 @@
<interface>
<requires lib="gtk" version="3.99"/>
<object class="GtkWindow">
</object>
</interface>

View File

@ -0,0 +1,5 @@
<interface>
<requires lib="gtk" version="4.0"/>
<object class="GtkWindow">
</object>
</interface>