Class TreeParserTester
In: tests/treeparsertester.rb
Parent: NQXMLTester
Methods
expect_error    test_access    test_bad_nesting    test_end_without_start    test_missing_qmark    test_parser    test_two_slashes   
Public Instance methods
test_parser()

Tokenizes @rsrc.xml and compares the entities returned with a list of expected values.

test_access()

Make sure the tree parser gathers entities into a document as expected, and that we can get to them through the appropriate Document methods.

expect_error(xml, regex, line = nil, col = nil, pos = nil)

Creates a tree parser over the XML and sets it to parsing. Expect a parser error that matches `regex'. If line is not nil, expect the error to occur in the specified position(s)

test_end_without_start()

Prove that end tags must appear after the correspond start tag.

test_bad_nesting()

Make sure tags must be balanced.

test_missing_qmark()

Same as tokenizer test. This test is probably not necessary.

test_two_slashes()

Same as tokenizer test. This test is probably not necessary.