Unit tests for SimplifiedBackwardsTextIterator. It currently shows a bug that it generates an extra new line at the beginning. On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". PASS plainTextWithTextIterator("
hello
world") is "hello\nworld" PASS plainTextWithBackwardsTextIterator("
hello
world") is "\nhello\nworld" PASS plainTextWithTextIterator("
hello
world
") is "hello\nworld" PASS plainTextWithBackwardsTextIterator("
hello
world
") is "\nhello\nworld" PASS plainTextWithTextIterator("
hello world
WebKit") is "hello world\nWebKit" PASS plainTextWithBackwardsTextIterator("
hello world
WebKit") is "\nhello world\nWebKit" PASS plainTextWithTextIterator("hello
world
") is "hello\nworld\n" PASS plainTextWithBackwardsTextIterator("hello
world
") is "hello\nworld" PASS plainTextWithTextIterator("WebKit") is "hello\nworld\nWebKit" PASS plainTextWithBackwardsTextIterator("WebKit") is "\n\nhello\nworld\nWebKit" PASS plainTextWithTextIterator("
helloworld
") is "hello world" PASS plainTextWithBackwardsTextIterator("
helloworld
") is "\n\nhello\tworld\t" PASS plainTextWithBackwardsTextIterator("imgiframemeterprogresslegendimgrole") is "img,iframe,meter,progress,\nlegend,imgrole,button," PASS plainTextWithBackwardsTextIterator("audiofile") is "audio,file" PASS successfullyParsed is true TEST COMPLETE