From 06960bb9d6826cf8b177140c478e0311a96df0b1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 30 Dec 2011 13:14:57 +0100 Subject: [PATCH] tests: Add a test for 'none' --- tests/css/parser/Makefile.am | 3 +++ tests/css/parser/value-none.css | 42 +++++++++++++++++++++++++++++ tests/css/parser/value-none.errors | 32 ++++++++++++++++++++++ tests/css/parser/value-none.ref.css | 10 +++++++ 4 files changed, 87 insertions(+) create mode 100644 tests/css/parser/value-none.css create mode 100644 tests/css/parser/value-none.errors create mode 100644 tests/css/parser/value-none.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index baa3de7011..97adb11c62 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -295,4 +295,7 @@ EXTRA_DIST += \ test.png \ value-inherit.css \ value-intial.css \ + value-none.css \ + value-none.errors \ + value-none.ref.css \ widget-style-property.css diff --git a/tests/css/parser/value-none.css b/tests/css/parser/value-none.css new file mode 100644 index 0000000000..738d684de6 --- /dev/null +++ b/tests/css/parser/value-none.css @@ -0,0 +1,42 @@ +* { + background-clip: none; + background-color: none; + background-image: none; + background-origin: none; + background-repeat: none; + border-bottom-color: none; + border-bottom-left-radius: none; + border-bottom-right-radius: none; + border-bottom-width: none; + border-image-repeat: none; + border-image-slice: none; + border-image-source: none; + border-image-width: none; + border-left-color: none; + border-left-width: none; + border-right-color: none; + border-right-width: none; + border-style: none; + border-top-color: none; + border-top-left-radius: none; + border-top-right-radius: none; + border-top-width: none; + box-shadow: none; + color: none; + engine: none; + font-family: none; + font-size: none; + font-style: none; + font-variant: none; + font-weight: none; + icon-shadow: none; + margin-bottom: none; + margin-left: none; + margin-right: none; + margin-top: none; + padding-bottom: none; + padding-left: none; + padding-right: none; + padding-top: none; + text-shadow: none; +} diff --git a/tests/css/parser/value-none.errors b/tests/css/parser/value-none.errors new file mode 100644 index 0000000000..f4c3de643c --- /dev/null +++ b/tests/css/parser/value-none.errors @@ -0,0 +1,32 @@ +value-none.css:2: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:3: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:5: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:6: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:7: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:8: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:9: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:10: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:11: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:12: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:14: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:15: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:16: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:17: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:18: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:20: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:21: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:22: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:23: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:25: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:28: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:29: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:30: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:31: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:33: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:34: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:35: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:36: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:37: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:38: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:39: error: GTK_CSS_PROVIDER_ERROR_SYNTAX +value-none.css:40: error: GTK_CSS_PROVIDER_ERROR_SYNTAX diff --git a/tests/css/parser/value-none.ref.css b/tests/css/parser/value-none.ref.css new file mode 100644 index 0000000000..deadc147ad --- /dev/null +++ b/tests/css/parser/value-none.ref.css @@ -0,0 +1,10 @@ +* { + background-image: none; + border-image-source: none; + border-style: none; + box-shadow: none; + engine: none; + font-family: "none"; + icon-shadow: none; + text-shadow: none; +}