# frozen_string_literal: true
require_relative "../test_helper"
module Parser
class SVGTest < Minitest::Spec
include SnapshotUtils
test "svg" do
assert_parsed_snapshot("")
end
test "svg with void path element" do
assert_parsed_snapshot(<<~SVG)
SVG
end
test "svg with non-void path element" do
assert_parsed_snapshot(<<~SVG)
SVG
end
test "svg with nested void path element" do
assert_parsed_snapshot(<<~SVG)
SVG
end
test "HTML void can be non-void within svg" do
assert_parsed_snapshot(<<~SVG)
SVG
end
test "svg unclosed element reports an error" do
assert_parsed_snapshot(<<~SVG)
SVG
end
test "case-insensitive svg with void element" do
assert_parsed_snapshot(<<~SVG)
SVG
end
end
end