# frozen_string_literal: true require_relative "../test_helper" module Parser class ObsoleteRawTextElementsTest < Minitest::Spec include SnapshotUtils test "xmp with markup inside" do assert_parsed_snapshot(%(<b>bold</b> &amp; moreafter)) end test "noembed with markup inside" do assert_parsed_snapshot(%(<img src="still.png">)) end test "noframes with markup inside" do assert_parsed_snapshot(%(<p>No frames</p>)) end test "plaintext runs to the end of the document" do assert_parsed_snapshot(<<~HTML)

before

<b>not bold</b> </plaintext> <p>still plaintext</p> HTML end test "plaintext in an xml document is an ordinary element" do assert_parsed_snapshot(<<~XML) <?xml version="1.0" encoding="utf-8"?> <unattend> <PlainText>false</PlainText> <Value><%= password %></Value> </unattend> XML end end end