"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/document_test.rb" between
asciidoctor-2.0.8.tar.gz and asciidoctor-2.0.9.tar.gz

About: Asciidoctor is a text processor and publishing toolchain for converting AsciiDoc content to HTML5, DocBook, PDF, and other formats.

document_test.rb  (asciidoctor-2.0.8):document_test.rb  (asciidoctor-2.0.9)
skipping to change at line 1244 skipping to change at line 1244
test 'should register entry in :refs table with reftext when request is made to register entry in :ids table' do test 'should register entry in :refs table with reftext when request is made to register entry in :ids table' do
doc = empty_document doc = empty_document
doc.register :ids, ['foobar', 'Foo Bar'] doc.register :ids, ['foobar', 'Foo Bar']
assert_empty doc.catalog[:ids] assert_empty doc.catalog[:ids]
refute_empty doc.catalog[:refs] refute_empty doc.catalog[:refs]
ref = doc.catalog[:refs]['foobar'] ref = doc.catalog[:refs]['foobar']
assert_equal 'Foo Bar', ref.reftext assert_equal 'Foo Bar', ref.reftext
assert_equal 'foobar', (doc.resolve_id 'Foo Bar') assert_equal 'foobar', (doc.resolve_id 'Foo Bar')
end end
test 'should record imagesdir when image is registered with catalog' do
doc = empty_document attributes: { 'imagesdir' => 'img' }, catalog_assets:
true
doc.register :images, 'diagram.svg'
assert_equal doc.catalog[:images].size, 1
assert_equal 'diagram.svg', doc.catalog[:images][0].target
assert_equal 'img', doc.catalog[:images][0].imagesdir
end
test 'should catalog assets inside nested document' do test 'should catalog assets inside nested document' do
input = <<~'EOS' input = <<~'EOS'
image::outer.png[] image::outer.png[]
|=== |===
a| a|
image::inner.png[] image::inner.png[]
|=== |===
EOS EOS
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)