summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2020-12-08 14:22:59 +0100
committerJonas Ådahl <jadahl@gmail.com>2020-12-08 14:22:59 +0100
commit074b933ae4e866d092edd734fd43524e39033b5e (patch)
treebfe8e33bfcbb79e1cc7ccd5a18b8c10f0bdd17d5
parent7b7f3342d8320d1205ad5da68b4d7efa16f547ab (diff)
downloadgtk+-074b933ae4e866d092edd734fd43524e39033b5e.tar.gz
reftests: Remove window-show-contents-on-map.ui test
It tested that a widget shown after the window was mapped deals with window resizing appropriately when doing the follow-up allocation. Now, doing this only allocates both at the same time, as allocation happens during the frame dispatch. To do the equivalent now, one would have to write code that shows the label after the first frame was drawn, and that's not possible via a reftest, so lets remove it.
-rw-r--r--testsuite/reftests/meson.build2
-rw-r--r--testsuite/reftests/window-show-contents-on-map.ref.ui16
-rw-r--r--testsuite/reftests/window-show-contents-on-map.ui15
3 files changed, 0 insertions, 33 deletions
diff --git a/testsuite/reftests/meson.build b/testsuite/reftests/meson.build
index 8df36fab93..a50b8f84df 100644
--- a/testsuite/reftests/meson.build
+++ b/testsuite/reftests/meson.build
@@ -439,8 +439,6 @@ testdata = [
'window-default-size.ui',
'window-height-for-width.ref.ui',
'window-height-for-width.ui',
- 'window-show-contents-on-map.ref.ui',
- 'window-show-contents-on-map.ui',
]
# These need to be fixed but the issue hasn't been tracked down.
diff --git a/testsuite/reftests/window-show-contents-on-map.ref.ui b/testsuite/reftests/window-show-contents-on-map.ref.ui
deleted file mode 100644
index f24540ed6b..0000000000
--- a/testsuite/reftests/window-show-contents-on-map.ref.ui
+++ /dev/null
@@ -1,16 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <object class="GtkWindow" id="window1">
- <property name="width_request">200</property>
- <property name="height_request">200</property>
- <property name="decorated">0</property>
- <child>
- <object class="GtkLabel" id="label1">
- <property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
- <property name="wrap">1</property>
- <property name="width_chars">20</property>
- <property name="max_width_chars">20</property>
- </object>
- </child>
- </object>
-</interface>
diff --git a/testsuite/reftests/window-show-contents-on-map.ui b/testsuite/reftests/window-show-contents-on-map.ui
deleted file mode 100644
index 88e00d8e51..0000000000
--- a/testsuite/reftests/window-show-contents-on-map.ui
+++ /dev/null
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<interface>
- <object class="GtkWindow" id="window1">
- <property name="decorated">0</property>
- <signal name="map" handler="gtk_widget_show" object="label1" after="yes" swapped="yes"/>
- <child>
- <object class="GtkLabel" id="label1">
- <property name="visible">0</property>
- <property name="label" translatable="yes">This label is only shown when the window is mapped. So the window does its first size allocation without the label being visible and has to resize.</property>
- <property name="width_chars">20</property>
- <property name="wrap">1</property>
- </object>
- </child>
- </object>
-</interface>