summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-02-10 00:39:18 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-02-10 00:39:18 +0000
commit43b8d99a4caba7fe0557117c4cd9ae4554b8a79e (patch)
treeba2652fb45e789984e73e12c0ec9db14a5960b27 /test
parent7d50c0354fbcf7d4721f19bdf88286b56484eddb (diff)
downloadlibcss-43b8d99a4caba7fe0557117c4cd9ae4554b8a79e.tar.gz
libcss-43b8d99a4caba7fe0557117c4cd9ae4554b8a79e.tar.bz2
Distinguish between pseudo classes and pseudo elements
svn path=/trunk/libcss/; revision=6406
Diffstat (limited to 'test')
-rw-r--r--test/dump.h3
-rw-r--r--test/parse-auto.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/test/dump.h b/test/dump.h
index 72b7679..4ad21c4 100644
--- a/test/dump.h
+++ b/test/dump.h
@@ -164,7 +164,8 @@ void dump_selector_detail(css_selector_detail *detail, char **ptr)
*ptr += 1;
dump_string(detail->name, ptr);
break;
- case CSS_SELECTOR_PSEUDO:
+ case CSS_SELECTOR_PSEUDO_CLASS:
+ case CSS_SELECTOR_PSEUDO_ELEMENT:
**ptr = ':';
*ptr += 1;
dump_string(detail->name, ptr);
diff --git a/test/parse-auto.c b/test/parse-auto.c
index 9a03b25..bef54cd 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -534,7 +534,8 @@ void dump_selector_detail(css_selector_detail *detail, char **ptr)
*ptr += 1;
dump_string(detail->name, ptr);
break;
- case CSS_SELECTOR_PSEUDO:
+ case CSS_SELECTOR_PSEUDO_CLASS:
+ case CSS_SELECTOR_PSEUDO_ELEMENT:
**ptr = ':';
*ptr += 1;
dump_string(detail->name, ptr);