Fixing furnace test/docs
parent
5a90a0aae5
commit
1279d6e8ea
|
@ -1,7 +1,7 @@
|
||||||
IN: furnace.tests
|
IN: furnace.tests
|
||||||
USING: http http.server.dispatchers http.server.responses
|
USING: http http.server.dispatchers http.server.responses
|
||||||
http.server furnace furnace.utilities tools.test kernel
|
http.server furnace furnace.utilities tools.test kernel
|
||||||
namespaces accessors io.streams.string urls ;
|
namespaces accessors io.streams.string urls xml.writer ;
|
||||||
TUPLE: funny-dispatcher < dispatcher ;
|
TUPLE: funny-dispatcher < dispatcher ;
|
||||||
|
|
||||||
: <funny-dispatcher> funny-dispatcher new-dispatcher ;
|
: <funny-dispatcher> funny-dispatcher new-dispatcher ;
|
||||||
|
@ -31,7 +31,7 @@ M: base-path-check-responder call-responder*
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
[ "<input type=\"hidden\" value=\"&&&\" name=\"foo\"/>" ]
|
[ "<input type=\"hidden\" value=\"&&&\" name=\"foo\"/>" ]
|
||||||
[ [ "&&&" "foo" hidden-form-field ] with-string-writer ]
|
[ "&&&" "foo" hidden-form-field xml>string ]
|
||||||
unit-test
|
unit-test
|
||||||
|
|
||||||
[ f ] [ <request> request [ referrer ] with-variable ] unit-test
|
[ f ] [ <request> request [ referrer ] with-variable ] unit-test
|
||||||
|
|
|
@ -25,8 +25,8 @@ HELP: hidden-form-field
|
||||||
{ $notes "This word is used by session management, conversation scope and asides." }
|
{ $notes "This word is used by session management, conversation scope and asides." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example
|
{ $example
|
||||||
"USING: furnace.utilities io ;"
|
"USING: furnace.utilities io xml.writer ;"
|
||||||
"\"bar\" \"foo\" hidden-form-field nl"
|
"\"bar\" \"foo\" hidden-form-field write-xml nl"
|
||||||
"<input type=\"hidden\" value=\"bar\" name=\"foo\"/>"
|
"<input type=\"hidden\" value=\"bar\" name=\"foo\"/>"
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
Loading…
Reference in New Issue