--- parser3/tests/030.html 2009/05/10 12:02:48 1.4
+++ parser3/tests/030.html 2024/12/13 13:54:03 1.7
@@ -1,15 +1,30 @@
-$cookie:clientType[
- $.value[test]
+$cookie:a[
+ $.value[a-value]
$.expires[^date::create(2003;2;26)]
]
-$cookie:zigi[
- $.value[value]
+
+$cookie:b[
+ $.value[b-value]
$.expires[^date::create(2003;2;20)]
]
-'$cookie:CLASS.clientType'
-$t[^table::create{key value}]
-^cookie:fields.foreach[k;v]{^t.append{$k ^if($v is "hash"){$v.value}{$v}}}
-^t.sort{$t.key}
+$cookie:s[
+ $.value[session-value]
+ $.expires[session]
+]
+
+e1: ^try-catch{
+ $cookie:z[
+ $.value[zzz-value]
+ $.expires[zzz]
+ ]
+}
+
+e2: ^try-catch-filtered{
+ $cookie:x[
+ $.value[xxx-value]
+ $.expires(-5000*365)
+ ]
+}
-^t.menu{${t.key}: '$t.value'}[
]
\ No newline at end of file
+^json:string[$cookie:fields; $.indent(1) ]