From 82a571e0ca8e3cd983e475fe31b10b4a776aae3e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 28 Dec 2015 12:39:54 -0500 Subject: [PATCH] Add a css style test for font inheritance --- testsuite/css/style/Makefile.am | 1 + testsuite/css/style/label.css | 5 +++++ testsuite/css/style/label.nodes | 6 ++++++ testsuite/css/style/label.ui | 19 +++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 testsuite/css/style/label.css create mode 100644 testsuite/css/style/label.nodes create mode 100644 testsuite/css/style/label.ui diff --git a/testsuite/css/style/Makefile.am b/testsuite/css/style/Makefile.am index 9f2542de3e..db48f79358 100644 --- a/testsuite/css/style/Makefile.am +++ b/testsuite/css/style/Makefile.am @@ -25,6 +25,7 @@ test_css_style_SOURCES = \ test-css-style.c test_data = \ + label.ui label.css label.nodes \ $(NULL) EXTRA_DIST += $(test_in_files) $(test_data) diff --git a/testsuite/css/style/label.css b/testsuite/css/style/label.css new file mode 100644 index 0000000000..76b190df59 --- /dev/null +++ b/testsuite/css/style/label.css @@ -0,0 +1,5 @@ +@import "reset-to-defaults.css"; + +box { + font: "Comic Sans"; +} diff --git a/testsuite/css/style/label.nodes b/testsuite/css/style/label.nodes new file mode 100644 index 0000000000..938e9297b6 --- /dev/null +++ b/testsuite/css/style/label.nodes @@ -0,0 +1,6 @@ +window visible=0 state=dir-ltr classes=background + decoration visible=1 state=dir-ltr + box visible=1 state=dir-ltr classes=horizontal + font-family: "\"Comic Sans\"" (label.css:4:20) + label visible=1 state=dir-ltr + font-family: "\"Comic Sans\"" (reset-to-defaults.css:2:12) diff --git a/testsuite/css/style/label.ui b/testsuite/css/style/label.ui new file mode 100644 index 0000000000..f1b397c08c --- /dev/null +++ b/testsuite/css/style/label.ui @@ -0,0 +1,19 @@ + + + + + False + popup + + + True + + + True + Hello World! + + + + + +