NOTE: This is the TestCases web. You cannot edit any topic named "TestCase..." or "Web..." in this web, you can only create new topics. Any topics you do create that are not checked into subversion may be deleted by anyone, at any time.
Description: ensure attribute parsing provides expected outcome

run this test

Designed by: Crawford Currie

Expected outcome in each case is defined as the results of extractParameters, the Cairo equivalent to the attribute parser.

This test uses the STRICTTAG feature of the TestFixturePlugin, that simply creates a Foswiki::Attrs from the parameter and then outputs it using stringify()

Input string Expected Strict Friendly
def="m\"no" pqr=" stu="vwx"" def="m\"no" pqr=" stu=" %STRICTTAG{ def="m\"no" pqr=" stu="vwx""}% %FRIENDLYTAG{ def="m\"no" pqr=" stu="vwx""}%

%STRICTTAG{ }% %FRIENDLYTAG{ }%
bloody " hell "bloody \" hell" %STRICTTAG{ bloody " hell}% %FRIENDLYTAG{ bloody " hell}%
"abc\" def="ghi" jkl" def="mno" pqr=" stu="\"vwx"" "abc\" def=\"ghi\" jkl" def="mno" pqr=" stu=" %STRICTTAG{ "abc\" def="ghi" jkl" def="mno" pqr=" stu="\"vwx""}% %FRIENDLYTAG{ "abc\" def="ghi" jkl" def="mno" pqr=" stu="\"vwx""}%

Wersja tematu: r1 - 2005-03-27 - 15:41:42 - ProjectContributor
 
O ile nie jest to stwierdzone inaczej, wszystkie materiały na stronie są dostępne na licencji Creative Commons Uznanie Autorstwa 3.0 Polska.
Pewne prawa zastrzeżone na rzecz Polskiej Partii Piratów. Serwis wykorzystuje oprogramowanie Foswiki na licencji GPL v2.