summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDodji Seketeli <dodji@gnome.org>2004-02-29 13:38:27 +0000
committerDodji Seketeli <dodji@src.gnome.org>2004-02-29 13:38:27 +0000
commitac6a175cddd835cf0e36ad0ffba103fc8cb3a579 (patch)
tree3121519869755f4c275857f094ce57a3f44d1121 /tests
parent6a2cb75412be707fd68b20399e2e1376b10b9f33 (diff)
downloadlibcroco-ac6a175cddd835cf0e36ad0ffba103fc8cb3a579.tar.gz
applied a patch of Rob BUIS to add the support of the :lang() pseudo class
2004-02-29 Dodji Seketeli <dodji@gnome.org> * src/cr-sel-eng.c: applied a patch of Rob BUIS to add the support of the :lang() pseudo class using the pluggable pseudo class system. * tests/test5-main.c,tests/test-inputs/test5.1.css,tests/test-output-refs/test5.1.css.out: Updated the non regression tests suite to test the :lang() pseudo class.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-inputs/test5.1.css1
-rw-r--r--tests/test-output-refs/test5.1.css.out11
-rw-r--r--tests/test5-main.c1
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/test-inputs/test5.1.css b/tests/test-inputs/test5.1.css
index 8847471..26c3627 100644
--- a/tests/test-inputs/test5.1.css
+++ b/tests/test-inputs/test5.1.css
@@ -4,6 +4,7 @@
[attr3~=val3_2] {prop6: val6}
[attr2=val2] {prop5: val5}
:first-child {first-child-prop: first-child-value}
+:lang(fr) {lang-prop: lang-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 b29f30e..75b17d0 100644
--- a/tests/test-output-refs/test5.1.css.out
+++ b/tests/test-output-refs/test5.1.css.out
@@ -120,3 +120,14 @@ xml start element: E6
xml end element: E6
'''''''''''''''''''''''''
+'''''''''''''''''''''''''
+xml start element: E7
+
+
+
+ :lang(fr) {
+ lang-prop : lang-value
+ }
+
+xml end element: E7
+'''''''''''''''''''''''''
diff --git a/tests/test5-main.c b/tests/test5-main.c
index 6305543..4214746 100644
--- a/tests/test5-main.c
+++ b/tests/test5-main.c
@@ -45,6 +45,7 @@ const guchar *xml_content=
"<E4 attr4=\"val4_1-val4_2-val4_3\">text4</E4>"
"<E5 class=\"class5\">text5</E5>"
"<E6 id=\"id6\">text6</E6>"
+"<E7 lang=\"fr\">text7</E7>"
"</document>";
static void