summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2004-03-04 23:36:04 +0000
committerDodji Seketeli <dodji@src.gnome.org>2004-03-04 23:36:04 +0000
commitc2ae0c55befcb725f4d068c9ef8a8f54101b9047 (patch)
tree5050e45508bd3fdbf4bd11202ff39e839916813f /tests
parent586d0453fb8d672415039b3fef920535e463657e (diff)
downloadlibcroco-c2ae0c55befcb725f4d068c9ef8a8f54101b9047.tar.gz
fixed silly bug in there. added the support of the "!important" keyword at
2004-03-05 Dodji Seketeli <dodji@gnome.org> * csslint/csslint.c: (parse_cmd_line) fixed silly bug in there. * src/cr-declaration.[ch],src/cr-om-parser.c, src/cr-parser.[ch],src/cr-statement.c,tests/test2-main.c, tests/test3-main.c: added the support of the "!important" keyword at the parsing level. * tests/test-inputs/test4.1.css: update nr tests to reflect the new !important thing. * src/cr-sel-eng.c: (put_css_properties_in_props_list): fix a small subtle bug in here. Selection engine is becoming more and more reliable ;).
Diffstat (limited to 'tests')
-rw-r--r--tests/test-inputs/test4.1.css2
-rw-r--r--tests/test-output-refs/test4.1.css.out2
-rw-r--r--tests/test2-main.c3
-rw-r--r--tests/test3-main.c3
4 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-inputs/test4.1.css b/tests/test-inputs/test4.1.css
index 60500e3..01bd9d4 100644
--- a/tests/test-inputs/test4.1.css
+++ b/tests/test-inputs/test4.1.css
@@ -1,5 +1,5 @@
* {
- font-family: Verdana, Arial, Helvetica, sans-serif, monospace;
+ font-family: Verdana, Arial, Helvetica, sans-serif, monospace !important;
}
tutu:class1:class2 {
diff --git a/tests/test-output-refs/test4.1.css.out b/tests/test-output-refs/test4.1.css.out
index df3e4c8..0c3ce20 100644
--- a/tests/test-output-refs/test4.1.css.out
+++ b/tests/test-output-refs/test4.1.css.out
@@ -1,5 +1,5 @@
* {
- font-family : Verdana, Arial, Helvetica, sans-serif, monospace
+ font-family : Verdana, Arial, Helvetica, sans-serif, monospace !important
}
tutu:class1:class2 {
diff --git a/tests/test2-main.c b/tests/test2-main.c
index 1b060e9..b27967e 100644
--- a/tests/test2-main.c
+++ b/tests/test2-main.c
@@ -282,7 +282,8 @@ test_end_selector (CRDocHandler *a_handler,
static void
-test_property (CRDocHandler *a_handler, GString *a_name, CRTerm *a_expr)
+test_property (CRDocHandler *a_handler, GString *a_name,
+ CRTerm *a_expr, gboolean a_important)
{
g_return_if_fail (a_handler) ;
diff --git a/tests/test3-main.c b/tests/test3-main.c
index 6c8d77f..3b7f1ac 100644
--- a/tests/test3-main.c
+++ b/tests/test3-main.c
@@ -281,7 +281,8 @@ test_end_selector (CRDocHandler *a_handler,
static void
-test_property (CRDocHandler *a_handler, GString *a_name, CRTerm *a_expr)
+test_property (CRDocHandler *a_handler, GString *a_name,
+ CRTerm *a_expr, gboolean a_important)
{
g_return_if_fail (a_handler) ;