Test 01: No id attribute
XHTML: Hello world.
no Java code
Result: Hello world.
Test 02: id attribute with empty model
XHTML: Hello world.
no Java code
Result: Hello world.
Test 03: model changing the text
XHTML: Hello world.
// Populate attributes of Test 03.
text = new TextModel ();
text.getAttributes ().appendAttribute ("style", "background: blue;");
text.getAttributes ().appendAttribute ("style", "foreground: red;");
text.getAttributes ().setAttribute ("class", "totoClass");
text.setText ("mummy");
datas.put ("test03", text);
Result: Hello world.
Test 04: model changing title
XHTML: Hello world.
// Populate attributes of Test 04.
text = new TextModel ();
text.getAttributes ().setAttribute ("title", "another title");
datas.put ("test04", text);
Result: Hello world.
Test 05: model adding style attributes
XHTML: Hello world.
// Populate attributes of Test 05.
text = new TextModel ();
text.getAttributes ().appendAttribute ("style", "background: blue;");
text.getAttributes ().appendAttribute ("style", "foreground: red;");
text.getAttributes ().setAttribute ("class", "aClass");
datas.put ("test05", text);
Result: Hello world.
Test 06: model appending style attributes
XHTML: Hello world.
// Populate attributes of Test 06.
text = new TextModel ();
text.getAttributes ().appendAttribute ("style", "foreground: red;");
text.getAttributes ().setAttribute ("class", "aClass");
datas.put ("test06", text);
Result: Hello world.
Test 07: image
XHTML: A picture .
// Populate attributes of Test 07.
text = new TextModel ();
text.getAttributes ().setAttribute ("width", "50%");
datas.put ("test07", text);
Result: A picture .
Test 08: xhtml source contains no display order in a tag.
XHTML: Hello you there.
Result: Hello you there.
Test 09: dynamic addition of the nodisplay order.
XHTML: Hello you there.
Result: Hello you there.