--- parser3/tests/030.html 2009/05/10 11:55:21 1.3
+++ parser3/tests/030.html 2024/09/13 23:49:45 1.6
@@ -1,14 +1,33 @@
-$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:s[
+ $.value[session-value]
+ $.expires[session]
]
-'$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}
+e1: ^try-catch{
+ $cookie:z[
+ $.value[zzz-value]
+ $.expires[zzz]
+ ]
+}
+
+e2: ^try{
+ $cookie:x[
+ $.value[xxx-value]
+ $.expires(-5000*365)
+ ]
+}{
+ $exception.handled(true)
+ Exception type: $exception.type
+}
-^t.menu{${t.key}: '$t.value'}[
]
\ No newline at end of file
+^json:string[$cookie:fields; $.indent(1) ]