# frozen_string_literal: true require_relative "../test_helper" module Parser class TextareaTest < Minitest::Spec include SnapshotUtils test "textarea with plain text" do assert_parsed_snapshot(%()) end test "textarea with an unclosed script tag inside" do assert_parsed_snapshot(<<~HTML) HTML end test "textarea with HTML elements inside" do assert_parsed_snapshot(%()) end test "textarea with ERB output" do assert_parsed_snapshot(%()) end test "textarea with ERB control flow" do assert_parsed_snapshot(<<~HTML) HTML end test "textarea with an uppercase closing tag and trailing whitespace" do assert_parsed_snapshot(%()) end test "textarea with a closing tag for a different element" do assert_parsed_snapshot(%()) end test "unclosed textarea" do assert_parsed_snapshot(%( HTML end end end