import Testing @testable import PureXML @Suite("HTML5 frameset documents") struct HTMLFramesetTests { private func document(_ html: String) -> String { PureXML.HTML.serialize(PureXML.HTML.parseDocument(html)) } @Test("A frameset element replaces the body and frames are void") func test_framesetReplacesBody() { let html = "" let expected = "" #expect(document(html) == expected) } @Test("Nested framesets nest correctly") func test_nestedFrameset() { let html = "" let expected = "" #expect(document(html) == expected) } @Test("A frameset after a head keeps head content") func test_framesetWithHead() { let html = "T" let expected = "T" #expect(document(html) == expected) } @Test("An ordinary document still produces a body") func test_ordinaryStillHasBody() { #expect(document("

x

") == "

x

") } }