File:  [parser3project] / parser3 / tests / 286.html
Revision 1.1: download - view: text, annotated - select for diffs - revision graph
Thu Jun 27 21:31:52 2013 UTC (13 years, 2 months ago) by moko
Branches: MAIN
CVS tags: HEAD
Test for issue #928 added.
it tests default content-type change.

@main[]

$ft[^file::exec[cat.sh; $.stdin[test] ;stdin]]
ft:^json:string[$fb]

$f1[^file::create[$ft; $.mode[binary] ]]
f1:^json:string[$f1]

$fb[^file::exec[binary;cat.sh; $.stdin[test] ;stdin]]
fb:^json:string[$fb]

$f2[^file::create[$fb; $.mode[text] ]]
f2:^json:string[$f2]

$f3[^file::create[$ft; $.content-type[my/format] ]]
f3:^json:string[$f3]

$f4[^file::create[$f3; $.name[test.gif] ]]
f4:^json:string[$f4]


E-mail: