From ac2c00567ea6baae5b81d06b6a0c093da63a5562 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Fri, 24 Nov 2023 20:35:36 +0800 Subject: [PATCH] Add spec tests for video block --- spec/html5_extended_converter.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/spec/html5_extended_converter.rb b/spec/html5_extended_converter.rb index 34aadea..6fe8b8b 100644 --- a/spec/html5_extended_converter.rb +++ b/spec/html5_extended_converter.rb @@ -219,6 +219,21 @@ describe Asciidoctor::Foodogsquared::Converters::HTML5Modified do (expect actual).to eq expected.chomp end + it 'should have a video block with a bunch of attributes' do + input = <<~INPUT + video::hello.mp4[opts="autoplay,loop", preload="metadata"] + INPUT + + expected = <<~HTML +
+ +
+ HTML + + actual = (Asciidoctor.convert input).chomp + (expect actual).to eq expected.chomp + end + it 'should have a video block with multiple and a caption' do input = <<~INPUT .Making up stuff right now