From d28816bdba66ad38bfdafb499fe6941663915db1 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 9 Apr 2011 13:48:45 +0200 Subject: [PATCH] tests: Add test for booleans to CSS tests --- tests/css/parser/Makefile.am | 3 ++ tests/css/parser/boolean.css | 48 ++++++++++++++++++++++++++++++++ tests/css/parser/boolean.errors | 8 ++++++ tests/css/parser/boolean.ref.css | 31 +++++++++++++++++++++ 4 files changed, 90 insertions(+) create mode 100644 tests/css/parser/boolean.css create mode 100644 tests/css/parser/boolean.errors create mode 100644 tests/css/parser/boolean.ref.css diff --git a/tests/css/parser/Makefile.am b/tests/css/parser/Makefile.am index b606dcd202..e0668fdef0 100644 --- a/tests/css/parser/Makefile.am +++ b/tests/css/parser/Makefile.am @@ -25,6 +25,9 @@ clean-local: rm $(builddir)/*.out.css || true EXTRA_DIST += \ + boolean.css \ + boolean.errors \ + boolean.ref.css \ close-at-end-of-file.css \ close-at-end-of-file.errors \ close-at-end-of-file.ref.css \ diff --git a/tests/css/parser/boolean.css b/tests/css/parser/boolean.css new file mode 100644 index 0000000000..6773140c05 --- /dev/null +++ b/tests/css/parser/boolean.css @@ -0,0 +1,48 @@ +a { + boolean-property: true; +} +b { + boolean-property: TRUE; +} +c { + boolean-property: tRuE; +} +d { + boolean-property: 1; +} +e { + boolean-property: false; +} +f { + boolean-property: FALSE; +} +g { + boolean-property: FAlsE; +} +h { + boolean-property: 0; +} +i { + boolean-property: trueest; +} +j { + boolean-property: T; +} +k { + boolean-property: tru; +} +l { + boolean-property: 0.0; +} +m { + boolean-property: 1.0; +} +n { + boolean-property: fals; +} +o { + boolean-property: f; +} +p { + boolean-property: FAL; +} diff --git a/tests/css/parser/boolean.errors b/tests/css/parser/boolean.errors new file mode 100644 index 0000000000..d609f13f78 --- /dev/null +++ b/tests/css/parser/boolean.errors @@ -0,0 +1,8 @@ +boolean.css:26: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:29: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:32: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:35: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:38: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:41: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:44: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE +boolean.css:47: error: GTK_CSS_PROVIDER_ERROR_PROPERTY_VALUE diff --git a/tests/css/parser/boolean.ref.css b/tests/css/parser/boolean.ref.css new file mode 100644 index 0000000000..1cc348dcdf --- /dev/null +++ b/tests/css/parser/boolean.ref.css @@ -0,0 +1,31 @@ +a { + boolean-property: true; +} + +b { + boolean-property: true; +} + +c { + boolean-property: true; +} + +d { + boolean-property: true; +} + +e { + boolean-property: false; +} + +f { + boolean-property: false; +} + +g { + boolean-property: false; +} + +h { + boolean-property: false; +}