Bug #8701 » rexml-dtd-notationdecl-test.patch
| test/rexml/test_notationdecl_parsetest.rb | ||
|---|---|---|
|
def setup
|
||
|
doc_string = <<-'XMLEND'
|
||
|
<!DOCTYPE r SYSTEM "urn:x-henrikmartensson:test" [
|
||
|
<!NOTATION n0 SYSTEM 'urn:x-henrikmartensson.org:test0'>
|
||
|
<!NOTATION n1 PUBLIC "-//HM//NOTATION TEST1//EN" 'urn:x-henrikmartensson.org:test5'>
|
||
|
<!NOTATION n2 PUBLIC '-//HM//NOTATION TEST2//EN' "urn:x-henrikmartensson.org:test6">
|
||
|
]>
|
||
| ... | ... | |
|
end
|
||
|
def test_notation
|
||
|
assert(@doctype.notation('n0'), "Testing notation n0")
|
||
|
assert(@doctype.notation('n1'), "Testing notation n1")
|
||
|
assert(@doctype.notation('n2'), "Testing notation n2")
|
||
|
end
|
||
- « Previous
- 1
- 2
- 3
- Next »