summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2003-12-24 18:56:27 +0000
committerDodji Seketeli <dodji@src.gnome.org>2003-12-24 18:56:27 +0000
commitd502de118110eccf135cca563f8c535759f743e4 (patch)
tree4e6f36d87d8e8bc05845cc5c7c0dd1ca2af189e4 /tests
parent88c789af79b38f850f91c6e6479c5c6ec432727f (diff)
downloadlibcroco-d502de118110eccf135cca563f8c535759f743e4.tar.gz
some light cosmetic changes. several fixes. Managed to make the pluggable
2003-12-24 Dodji Seketeli <dodji@gnome.org> * src/parser/cr-additional-sel.h,src/parser/cr-pseudo.h, src/parser/cr-utils.h: some light cosmetic changes. * src/seleng/cr-sel-eng.c: several fixes. Managed to make the pluggable handler for pseudo class selectors evaluation work. Wrote a handler for the ":first-child" pseudo class selector. This class is now officially supported.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-inputs/test5.1.css1
-rw-r--r--tests/test-output-refs/test5.1.css.out21
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/test-inputs/test5.1.css b/tests/test-inputs/test5.1.css
index e5f2009..8847471 100644
--- a/tests/test-inputs/test5.1.css
+++ b/tests/test-inputs/test5.1.css
@@ -3,6 +3,7 @@
[attr4|=val4] {prop7: val7}
[attr3~=val3_2] {prop6: val6}
[attr2=val2] {prop5: val5}
+:first-child {first-child-prop: first-child-value}
E2[attr2=val2] {prop8: val8}
E0 {prop0: val0}
E0+E1{pro1:val1}
diff --git a/tests/test-output-refs/test5.1.css.out b/tests/test-output-refs/test5.1.css.out
index bb1d76f..b29f30e 100644
--- a/tests/test-output-refs/test5.1.css.out
+++ b/tests/test-output-refs/test5.1.css.out
@@ -1,8 +1,24 @@
'''''''''''''''''''''''''
+xml start element: document
+
+
+
+ :first-child {
+ first-child-prop : first-child-value
+ }
+
+xml end element: document
+'''''''''''''''''''''''''
+'''''''''''''''''''''''''
xml start element: E0
+ :first-child {
+ first-child-prop : first-child-value
+ }
+
+
E0 {
prop0 : val0
}
@@ -25,6 +41,11 @@ xml start element: E1-1
+ :first-child {
+ first-child-prop : first-child-value
+ }
+
+
E1 E1-1 {
prop2 : val2
}