test suite test markup text
import idealmachinechannelsstring writer
test case test writer trivial()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the formatterwrite(base element • new(text libraryP, "foo"))
assert "<p>\n foo\n</p>\n" == the writerelements()
test case test quoted()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the formatterwrite("AT&T <etc.> q1:' q2:\"")
assert "AT&amp;T &lt;etc.&gt; q1:&apos; q2:&quot;" == the writerelements()
test case test writer indent()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the formatterwrite(base element • new(text libraryP, "foo"))
the formatterwrite(base element • new(text libraryINDENT, "bar"))
assert "<p>\n foo\n</p>\n<indent>\n bar\n</indent>\n" == the writerelements()
test case test attribute()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the formatterwrite(base element • new(text libraryP, text libraryNAME, "foo", "bar"))
assert "<p name='foo'>\n bar\n</p>\n" == the writerelements()
test case test self closing tag()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the formatterwrite("foo")
the formatterwrite(base element • new(text libraryBR, text libraryCLEAR, "all", missinginstance))
the formatterwrite("bar\n")
assert "foo<br clear='all' />\nbar\n" == the writerelements()
test case test writer fragment()
the writer : string writer • new()
the formatter : markup formatter • new(the writer)
the entity : text entity • new(text libraryIDEAL TEXT, "*", "middot")
the formatterwrite("one")
the formatterwrite(the entity)
the formatterwrite("two")
assert "one&middot;two" == the writerelements()