Commit 514a1028 authored by Moshe Zadka's avatar Moshe Zadka

Adding tests of the "attrs" optional argument, and of the js_output

functionality.
parent f580d27a
......@@ -5,3 +5,18 @@ Set-Cookie: chips=ahoy;
chips 'ahoy' 'ahoy'
Set-Cookie: keebler="E=mc2; L=\"Loves\"; fudge=\012;";
keebler 'E=mc2; L="Loves"; fudge=\012;' 'E=mc2; L="Loves"; fudge=\012;'
Set-Cookie: Customer="WILE_E_COYOTE"; Path=/acme;
<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme; Version=1;"
// end hiding -->
</script>
<SCRIPT LANGUAGE="JavaScript">
<!-- begin hiding
document.cookie = "Customer="WILE_E_COYOTE"; Path=/acme;"
// end hiding -->
</script>
......@@ -24,3 +24,8 @@ C.load('Customer="WILE_E_COYOTE"; Version=1; Path=/acme')
assert C['Customer'].value == 'WILE_E_COYOTE'
assert C['Customer']['version'] == '1'
assert C['Customer']['path'] == '/acme'
print C.output(['path'])
print C.js_output()
print C.js_output(['path'])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment