summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 13:37:30 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-01-16 13:37:30 +0000
commit1b6259c9dcb9b1eaabe6e0330087da102281f648 (patch)
treeacf597ac89a67a7a1b0c736b00cc1f10a9fe6691 /test
parent1ce758560fb4ad3fe4f55af61e683d2032a41e4d (diff)
downloadlibcss-1b6259c9dcb9b1eaabe6e0330087da102281f648.tar.gz
libcss-1b6259c9dcb9b1eaabe6e0330087da102281f648.tar.bz2
Dump unexpected bytecode
svn path=/trunk/libcss/; revision=6081
Diffstat (limited to 'test')
-rw-r--r--test/parse-auto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/parse-auto.c b/test/parse-auto.c
index 2d88a20..02c9c53 100644
--- a/test/parse-auto.c
+++ b/test/parse-auto.c
@@ -431,6 +431,12 @@ void validate_rule_selector(css_rule_selector *s, exp_entry *e, int testnum)
e->bytecode[i]) {
printf("%d: Bytecode differs at %d\n",
testnum, i);
+ while (i < e->bcused) {
+ printf("%.2x ",
+ ((uint8_t *) s->style->bytecode)[i]);
+ i++;
+ }
+ printf("\n");
assert(0 && "Bytecode differs");
}
}