[gtk+] Expand css style font tests
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Expand css style font tests
- Date: Mon, 18 Apr 2016 18:39:28 +0000 (UTC)
commit 5ab6ff6b5e832cb51ff5f260e938b654d4e95ae9
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Apr 18 14:38:53 2016 -0400
Expand css style font tests
Test more of the syntax of the font: shorthand.
testsuite/css/style/font.css | 18 +++++++++++++++++-
testsuite/css/style/font.nodes | 34 +++++++++++++++++++++++++++++++++-
testsuite/css/style/font.ui | 29 +++++++++++++++++++++++++++++
3 files changed, 79 insertions(+), 2 deletions(-)
---
diff --git a/testsuite/css/style/font.css b/testsuite/css/style/font.css
index 9c99623..b5bd402 100644
--- a/testsuite/css/style/font.css
+++ b/testsuite/css/style/font.css
@@ -2,6 +2,22 @@ box {
font: 10px "Comic Sans";
}
-label {
+#label1 {
font-size: smaller;
}
+
+#label2 {
+ font: 10pt Cantarell, sans-serif;
+}
+
+#label3 {
+ font: bold italic 80% monospace;
+}
+
+#label4 {
+ font: expanded oblique xx-small serif;
+}
+
+#label5 {
+ font: 20mm '21st Century';
+}
diff --git a/testsuite/css/style/font.nodes b/testsuite/css/style/font.nodes
index ef23f94..1ed7e01 100644
--- a/testsuite/css/style/font.nodes
+++ b/testsuite/css/style/font.nodes
@@ -1,3 +1,7 @@
+fount font weight: bold
+fount font style: italic
+fount font stretch: expanded
+fount font style: oblique
[window.background:dir(ltr)]
decoration:dir(ltr)
box.horizontal:dir(ltr)
@@ -8,5 +12,33 @@
font-weight: normal; /* font.css:2:25 */
font-stretch: normal; /* font.css:2:25 */
- label:dir(ltr)
+ label#label1:dir(ltr)
font-size: 8.3333333333333339px; /* font.css:6:20 */
+ label#label2:dir(ltr)
+ font-size: 13.333333333333334px; /* font.css:10:34 */
+ font-family: "Cantarell", "sans-serif"; /* font.css:10:34 */
+ font-style: normal; /* font.css:10:34 */
+ font-variant: normal; /* font.css:10:34 */
+ font-weight: normal; /* font.css:10:34 */
+ font-stretch: normal; /* font.css:10:34 */
+ label#label3:dir(ltr)
+ font-size: 8px; /* font.css:14:33 */
+ font-family: "monospace"; /* font.css:14:33 */
+ font-style: italic; /* font.css:14:33 */
+ font-variant: normal; /* font.css:14:33 */
+ font-weight: bold; /* font.css:14:33 */
+ font-stretch: normal; /* font.css:14:33 */
+ label#label4:dir(ltr)
+ font-size: 8px; /* font.css:18:39 */
+ font-family: "serif"; /* font.css:18:39 */
+ font-style: oblique; /* font.css:18:39 */
+ font-variant: normal; /* font.css:18:39 */
+ font-weight: normal; /* font.css:18:39 */
+ font-stretch: expanded; /* font.css:18:39 */
+ label#label5:dir(ltr)
+ font-size: 75.590551181102356px; /* font.css:22:27 */
+ font-family: "21st Century"; /* font.css:22:27 */
+ font-style: normal; /* font.css:22:27 */
+ font-variant: normal; /* font.css:22:27 */
+ font-weight: normal; /* font.css:22:27 */
+ font-stretch: normal; /* font.css:22:27 */
diff --git a/testsuite/css/style/font.ui b/testsuite/css/style/font.ui
index f1b397c..2428218 100644
--- a/testsuite/css/style/font.ui
+++ b/testsuite/css/style/font.ui
@@ -10,6 +10,35 @@
<child>
<object class="GtkLabel">
<property name="visible">True</property>
+ <property name="name">label1</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">label2</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">label3</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">label4</property>
+ <property name="label" translatable="yes">Hello World!</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkLabel">
+ <property name="visible">True</property>
+ <property name="name">label5</property>
<property name="label" translatable="yes">Hello World!</property>
</object>
</child>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]