diff -r 000000000000 -r 1918ee327afb tests/arthur/data/1.1/text-ws-01-t.svg --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/arthur/data/1.1/text-ws-01-t.svg Mon Jan 11 14:00:40 2010 +0000 @@ -0,0 +1,99 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Test for viewer correct handling of whitespace and the 'xml:space' attribute. + There are two sub-tests, for xml:space value "default". + In each test, the content of the 'text' element is written on + multiple lines. The first test of each pair has indented text with leading + space characters, tabs, etc. The second has no indentation, but a line break + before the content and after it. There are no space (or other whitespace) + characters at the ends of the lines. + + + The two test cases are self-descriptive. From the top; + first, "default" value applied to 3 lines of content with indents, space characters, tabs, etc; + second, "default" applied to two lines content with no indent; + + + In each test, the test string is in blue and the reference + image is in black. + The rendered picture should approximately match the reference image, + however there is some question in the reference image concerning the + exact amount of space in the long-space areas. The third test uses the nbsp unicode character + to force the reference white spaces display, which provides an accurate match if the font in use + has the same metrics for that character and the default white space. + Also, variations are possible in the text fonts and layout (per CSS2 rules). + + + The test also uses the 'rect' element, + as well as basic fill (solid primary colors), + stroke (black 1-pixel lines), font-family (Arial) + and font-size properties. + + + + + text-ws-01-t + Test that viewer correctly handle whitespace and the "space" attribute. + + + + + Basic: xml:space attribute + & whitespace handling. + + + + WS with indented lines. + WS with indented lines. + + xml:space='default' + + + + +WS +non-indented lines. + + WS non-indented lines. + + xml:space='default' + + + $Revision: 1.6 $ + + +