Class StreamingParserTester
In: tests/streamingparsertester.rb
Parent: NQXMLTester
Methods
expect_error    test_attr_with_amp    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.

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

Creates a streaming 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.

test_attr_with_amp()