…
It’s just a sample, you can write tests for larger blocks of CSL with
the same layout. Fine-grained tests like this of individual elements
and attributes are helpful to a coder, though, to provide a target for
specific functionality, and to identify specific areas of misbehaviour
when later changes to a program mess things up.
Right, but the results examples are a) specific to one output format
(HTML) and b) could be represented many ways in that format and still
be correct. E.g. rather than …
We’re just trying to confirm that the engine is capable of doing the
right thing. The markup can be generated by a driver specific to the
testing process, and it can contain any symbols you like. I used HTML
just because it’s familiar to me, but if something else should be
used, no problem.
“some title”
… you could have:
“some title”
… or:
“some title”
… or:
“some title”
All of them would yield the same display.
So am simply observing it’d be nice to be able to operate a level
above that if possible to avoid that problem.
Do you have any idea what this level would be? It agree that this is a real
issue (especially if you were to have something like ), but I have no inspiration as
far as good ways of handling it. The three cases you’ve mentioned could all
be accommodated by easily with simple string replace operations, but the
above case would be a little more difficult.
Can you combine tags like that in RTF? If not, I think you can safely
assume the harder case away (we might check the existing
implementations just to be sure no one is getting burned). What would
be a problem is a markup language that requires formatting hints to be
combined in this way, and does not permit them to be nested. I can’t
think of any, but my knowledge is limited.
Frank