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

functionality.
This commit is contained in:
Moshe Zadka 2000-08-19 15:57:33 +00:00
parent f580d27aa3
commit 514a1028a2
2 changed files with 20 additions and 0 deletions

View File

@ -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>

View File

@ -24,3 +24,8 @@
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'])