diff options
author | Matthias Clasen <mclasen@redhat.com> | 2015-12-28 10:52:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2015-12-29 07:46:30 -0500 |
commit | 0f95ff74b8d0922ba8352567daf7d74634e254ef (patch) | |
tree | 6256cd723bf227cdce9f61f3b6f535476d9c37a8 | |
parent | fdd984f55c1d2a7d658960094ca883a3363a6b56 (diff) | |
download | gtk+-0f95ff74b8d0922ba8352567daf7d74634e254ef.tar.gz |
Add CSS node test for progressbars
-rw-r--r-- | testsuite/css/nodes/Makefile.am | 1 | ||||
-rw-r--r-- | testsuite/css/nodes/progressbar.nodes | 20 | ||||
-rw-r--r-- | testsuite/css/nodes/progressbar.ui | 49 |
3 files changed, 70 insertions, 0 deletions
diff --git a/testsuite/css/nodes/Makefile.am b/testsuite/css/nodes/Makefile.am index c2a92f2499..693489a71d 100644 --- a/testsuite/css/nodes/Makefile.am +++ b/testsuite/css/nodes/Makefile.am @@ -28,6 +28,7 @@ test_data = \ buttons.ui buttons.nodes \ entries.ui entries.nodes \ notebook.ui notebook.nodes \ + progressbar.ui progressbar.nodes \ $(NULL) EXTRA_DIST += $(test_in_files) $(test_data) diff --git a/testsuite/css/nodes/progressbar.nodes b/testsuite/css/nodes/progressbar.nodes new file mode 100644 index 0000000000..3cd63310af --- /dev/null +++ b/testsuite/css/nodes/progressbar.nodes @@ -0,0 +1,20 @@ +window visible=0 state=dir-ltr classes=background + decoration visible=1 state=dir-ltr + box id=progressbars visible=1 state=dir-ltr classes=vertical + progressbar visible=1 state=dir-ltr classes=horizontal + text visible=1 state=dir-ltr + trough visible=1 state=dir-ltr + progress visible=1 state=dir-ltr classes=left + progressbar visible=1 state=dir-ltr classes=horizontal + trough visible=1 state=dir-ltr + progress visible=1 state=dir-ltr classes=left + progressbar visible=1 state=dir-ltr classes=horizontal + text visible=1 state=dir-ltr + trough visible=1 state=dir-ltr + progress visible=1 state=dir-ltr classes=left + progressbar visible=1 state=dir-ltr classes=horizontal + trough visible=1 state=dir-ltr + progress visible=1 state=dir-ltr classes=right + progressbar visible=1 state=dir-ltr classes=vertical + trough visible=1 state=dir-ltr + progress visible=1 state=dir-ltr classes=top diff --git a/testsuite/css/nodes/progressbar.ui b/testsuite/css/nodes/progressbar.ui new file mode 100644 index 0000000000..83badd4348 --- /dev/null +++ b/testsuite/css/nodes/progressbar.ui @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interface> + <!-- interface-requires gtk+ 3.0 --> + <object class="GtkWindow" id="window1"> + <property name="can_focus">False</property> + <property name="type">popup</property> + <child> + <object class="GtkBox"> + <property name="visible">True</property> + <property name="name">progressbars</property> + <property name="orientation">vertical</property> + <child> + <object class="GtkProgressBar"> + <property name="visible">True</property> + <property name="show-text">True</property> + <property name="fraction">0</property> + </object> + </child> + <child> + <object class="GtkProgressBar"> + <property name="visible">True</property> + <property name="fraction">1</property> + </object> + </child> + <child> + <object class="GtkProgressBar"> + <property name="visible">True</property> + <property name="show-text">True</property> + <property name="fraction">0.4</property> + </object> + </child> + <child> + <object class="GtkProgressBar"> + <property name="visible">True</property> + <property name="inverted">True</property> + <property name="fraction">0.4</property> + </object> + </child> + <child> + <object class="GtkProgressBar"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <property name="fraction">0.4</property> + </object> + </child> + </object> + </child> + </object> +</interface> |